mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
Removed post specific fields from page model serializer
This commit is contained in:
parent
22fa89fea8
commit
b427b3ca93
@ -1,3 +1,13 @@
|
||||
import PostSerializer from './post';
|
||||
|
||||
export default PostSerializer.extend({});
|
||||
export default PostSerializer.extend({
|
||||
serialize(/*snapshot, options*/) {
|
||||
let json = this._super(...arguments);
|
||||
|
||||
// Properties that exist on the model but we don't want sent in the payload
|
||||
delete json.email_subject;
|
||||
delete json.send_email_when_published;
|
||||
|
||||
return json;
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user