0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Removed unnecessary emails serializer

refs: https://github.com/TryGhost/Toolbox/issues/245

-  we don't need this serializer because the default serializer will call the emails  mapper
This commit is contained in:
Hannah Wolfe 2022-03-25 21:00:30 +00:00
parent 9f3b6f1818
commit 9221e2a34e
No known key found for this signature in database
GPG key ID: AB586C3B5AE5C037
2 changed files with 0 additions and 26 deletions

View file

@ -1,22 +0,0 @@
const mappers = require('./mappers');
module.exports = {
read(email, apiConfig, frame) {
frame.response = {
emails: [mappers.emails(email, frame)]
};
},
browse(page, apiConfig, frame) {
const data = {
emails: page.data.map(model => mappers.emails(model, frame)),
meta: page.meta
};
frame.response = data;
},
get retry() {
return this.read;
}
};

View file

@ -125,10 +125,6 @@ module.exports = {
return require('./email-preview');
},
get emails() {
return require('./emails');
},
get snippets() {
return require('./snippets');
},