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:
parent
9f3b6f1818
commit
9221e2a34e
2 changed files with 0 additions and 26 deletions
|
@ -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;
|
||||
}
|
||||
};
|
|
@ -125,10 +125,6 @@ module.exports = {
|
|||
return require('./email-preview');
|
||||
},
|
||||
|
||||
get emails() {
|
||||
return require('./emails');
|
||||
},
|
||||
|
||||
get snippets() {
|
||||
return require('./snippets');
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue