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:
Hannah Wolfe 2022-03-26 09:08:07 +00:00
parent df4b630da0
commit 835a3d0d46
No known key found for this signature in database
GPG Key ID: AB586C3B5AE5C037
2 changed files with 0 additions and 19 deletions

View File

@ -41,10 +41,6 @@ module.exports = {
return require('./schedules');
},
get webhooks() {
return require('./webhooks');
},
get posts() {
return require('./posts');
},

View File

@ -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)]
};
}
};