mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03: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
@ -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 New Issue
Block a user