mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
8205d3b8d6
refs https://github.com/TryGhost/Ghost/issues/7432 - invite.role instead of invite.roles - be able to serialize/deserialize response from and request to server - server returns role_id
10 lines
260 B
JavaScript
10 lines
260 B
JavaScript
import ApplicationSerializer from 'ghost-admin/serializers/application';
|
|
|
|
export default ApplicationSerializer.extend({
|
|
attrs: {
|
|
role: {key: 'role_id'},
|
|
createdAtUTC: {key: 'created_at'},
|
|
updatedAtUTC: {key: 'updated_at'}
|
|
}
|
|
});
|