Files
planka/server/api/helpers/utils/jsonify-record.js

15 lines
211 B
JavaScript

module.exports = {
sync: true,
inputs: {
record: {
type: 'ref',
required: true,
},
},
fn(inputs) {
return inputs.record.toJSON ? inputs.record.toJSON() : inputs.record;
},
};