UNPKG

empress-blog

Version:

Fully-functional, SEO friendly static site implementation of a blog system built on Ember.

11 lines (9 loc) 310 B
/* eslint-disable prettier/prettier */ import ApplicationSerializer from './application'; export default ApplicationSerializer.extend({ normalize() { let tag = this._super(...arguments); tag.data.attributes._postIds = tag.data.relationships.posts?.data.map(p => p.id) ?? []; return tag; } });