mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Removed unnecessary webhooks serializer
refs: https://github.com/TryGhost/Toolbox/issues/245 - we don't need this serializer because the default serializer will do the same thing
This commit is contained in:
parent
df4b630da0
commit
835a3d0d46
2 changed files with 0 additions and 19 deletions
|
@ -41,10 +41,6 @@ module.exports = {
|
|||
return require('./schedules');
|
||||
},
|
||||
|
||||
get webhooks() {
|
||||
return require('./webhooks');
|
||||
},
|
||||
|
||||
get posts() {
|
||||
return require('./posts');
|
||||
},
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:webhooks');
|
||||
|
||||
module.exports = {
|
||||
all(models, apiConfig, frame) {
|
||||
debug('all');
|
||||
// CASE: e.g. destroy returns null
|
||||
if (!models) {
|
||||
return;
|
||||
}
|
||||
|
||||
frame.response = {
|
||||
webhooks: [models.toJSON(frame.options)]
|
||||
};
|
||||
}
|
||||
};
|
Loading…
Reference in a new issue