mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
14 lines
474 B
JavaScript
14 lines
474 B
JavaScript
|
/* eslint-disable camelcase */
|
||
|
import ApplicationSerializer from 'ghost-admin/serializers/application';
|
||
|
import {EmbeddedRecordsMixin} from '@ember-data/serializer/rest';
|
||
|
|
||
|
export default ApplicationSerializer.extend(EmbeddedRecordsMixin, {
|
||
|
attrs: {
|
||
|
processedAtUTC: {key: 'processed_at'},
|
||
|
deliveredAtUTC: {key: 'delivered_at'},
|
||
|
openedAtUTC: {key: 'opened_at'},
|
||
|
failedAtUTC: {key: 'failed_at'},
|
||
|
email: {embedded: 'always'}
|
||
|
}
|
||
|
});
|