mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
f73837fba3
refs d40740b0ec
- dropped use of `@classic` for auto-converted classes
- switched remaining EmberObject serializers to native classes
14 lines
512 B
JavaScript
14 lines
512 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'}
|
|
}
|
|
}
|