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

13 lines
375 B
JavaScript

import ApplicationSerializer from './application';
export default class RescheduleEvent extends ApplicationSerializer {
separateNanos = ['Time'];
normalize(typeHash, hash) {
hash.PreviousAllocationId = hash.PrevAllocID ? hash.PrevAllocID : null;
hash.PreviousNodeId = hash.PrevNodeID ? hash.PrevNodeID : null;
return super.normalize(typeHash, hash);
}
}