mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 07:51:55 +03:00
d7375aab1a
no issue - removed the rename of `role_id` to `role` in the invite serialiser to let Ember Data do it's thing with the `invite.role` relationship - added a guard to the team screen background reloading to ensure that role data is present in the store before loading invites so that Ember Data doesn't trigger unnecessary requests to find missing relationship data
9 lines
228 B
JavaScript
9 lines
228 B
JavaScript
import ApplicationSerializer from 'ghost-admin/serializers/application';
|
|
|
|
export default ApplicationSerializer.extend({
|
|
attrs: {
|
|
createdAtUTC: {key: 'created_at'},
|
|
updatedAtUTC: {key: 'updated_at'}
|
|
}
|
|
});
|