2018-08-17 18:22:26 +00:00
|
|
|
import { assign } from '@ember/polyfills';
|
|
|
|
import ApplicationSerializer from './application';
|
|
|
|
|
|
|
|
export default ApplicationSerializer.extend({
|
|
|
|
normalize(typeHash, hash) {
|
2018-12-13 02:40:10 +00:00
|
|
|
const failures = hash.FailedTGAllocs || {};
|
|
|
|
hash.FailedTGAllocs = Object.keys(failures).map(key => {
|
|
|
|
return assign({ Name: key }, failures[key] || {});
|
2018-08-17 18:22:26 +00:00
|
|
|
});
|
|
|
|
return this._super(...arguments);
|
|
|
|
},
|
|
|
|
});
|