mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 06:25:51 +03:00
d51f2bcf23
closes https://github.com/TryGhost/Admin/pull/2107 - updated related babel dependencies - bumped eslint - ran `yarn lint:js --fix` - added eslint ignore comments for some required non-camel-case properties
14 lines
513 B
JavaScript
14 lines
513 B
JavaScript
/* eslint-disable camelcase */
|
|
import ApplicationSerializer from 'ghost-admin/serializers/application';
|
|
import {EmbeddedRecordsMixin} from '@ember-data/serializer/rest';
|
|
|
|
export default class EmailRecipientSerializer extends ApplicationSerializer.extend(EmbeddedRecordsMixin) {
|
|
attrs = {
|
|
processedAtUTC: {key: 'processed_at'},
|
|
deliveredAtUTC: {key: 'delivered_at'},
|
|
openedAtUTC: {key: 'opened_at'},
|
|
failedAtUTC: {key: 'failed_at'},
|
|
email: {embedded: 'always'}
|
|
};
|
|
}
|