Ghost/ghost/admin/app/serializers/email-recipient.js

14 lines
513 B
JavaScript
Raw Normal View History

/* 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'}
};
}