Ghost/ghost/admin/app/serializers/email-recipient.js
Kevin Ansfield f73837fba3 Finalized migration of serializers to native class syntax
refs d40740b0ec

- dropped use of `@classic` for auto-converted classes
- switched remaining EmberObject serializers to native classes
2022-02-02 18:35:18 +00:00

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'}
}
}