open-vault/ui/app/serializers/clients/version-history.js

12 lines
420 B
JavaScript
Raw Normal View History

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);
},
});