mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 17:23:25 +03:00
feat: Webhooks configuration, all events support, refactoring
This commit is contained in:
14
server/api/helpers/utils/jsonify-record.js
Normal file
14
server/api/helpers/utils/jsonify-record.js
Normal file
@@ -0,0 +1,14 @@
|
||||
module.exports = {
|
||||
sync: true,
|
||||
|
||||
inputs: {
|
||||
record: {
|
||||
type: 'ref',
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
|
||||
fn(inputs) {
|
||||
return inputs.record.toJSON ? inputs.record.toJSON() : inputs.record;
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user