mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 05:14:12 +03:00
5a609a785f
no issue - Allows editing member's name and note in admin
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;
|
|
}
|
|
});
|