2019-02-22 06:17:33 +03:00
|
|
|
import PostSerializer from './post';
|
|
|
|
|
2019-11-05 14:43:26 +03:00
|
|
|
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;
|
2020-11-06 21:54:27 +03:00
|
|
|
delete json.email_recipient_filter;
|
2019-11-07 11:37:26 +03:00
|
|
|
delete json.email_id;
|
|
|
|
delete json.email;
|
2019-11-05 14:43:26 +03:00
|
|
|
|
|
|
|
return json;
|
|
|
|
}
|
|
|
|
});
|