12 lines
420 B
JavaScript
12 lines
420 B
JavaScript
|
import ApplicationSerializer from '../application';
|
||
|
|
||
|
export default ApplicationSerializer.extend({
|
||
|
normalizeFindAllResponse(store, primaryModelClass, payload, id, requestType) {
|
||
|
let normalizedPayload = [];
|
||
|
payload.keys.forEach((key) => {
|
||
|
normalizedPayload.push({ id: key, ...payload.key_info[key] });
|
||
|
});
|
||
|
return this._super(store, primaryModelClass, normalizedPayload, id, requestType);
|
||
|
},
|
||
|
});
|