13 lines
392 B
JavaScript
13 lines
392 B
JavaScript
import { assign } from '@ember/polyfills';
|
|
import ApplicationSerializer from './application';
|
|
|
|
export default ApplicationSerializer.extend({
|
|
normalize(typeHash, hash) {
|
|
const failures = hash.FailedTGAllocs || {};
|
|
hash.FailedTGAllocs = Object.keys(failures).map(key => {
|
|
return assign({ Name: key }, failures[key] || {});
|
|
});
|
|
return this._super(...arguments);
|
|
},
|
|
});
|