mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 21:33:24 +03:00
16 lines
486 B
JavaScript
16 lines
486 B
JavaScript
|
/* eslint-disable camelcase */
|
||
|
import ApplicationSerializer from 'ghost-admin/serializers/application';
|
||
|
|
||
|
export default ApplicationSerializer.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.stripe;
|
||
|
// Normalize properties
|
||
|
json.name = json.name || '';
|
||
|
json.note = json.note || '';
|
||
|
return json;
|
||
|
}
|
||
|
});
|