open-nomad/ui/app/serializers/reschedule-event.js

13 lines
375 B
JavaScript
Raw Normal View History

2018-04-25 22:50:15 +00:00
import ApplicationSerializer from './application';
export default class RescheduleEvent extends ApplicationSerializer {
separateNanos = ['Time'];
2018-04-25 22:50:15 +00:00
normalize(typeHash, hash) {
hash.PreviousAllocationId = hash.PrevAllocID ? hash.PrevAllocID : null;
hash.PreviousNodeId = hash.PrevNodeID ? hash.PrevNodeID : null;
return super.normalize(typeHash, hash);
}
}