github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/ui/app/serializers/reschedule-event.js (about)

     1  import ApplicationSerializer from './application';
     2  
     3  export default class RescheduleEvent extends ApplicationSerializer {
     4    separateNanos = ['Time'];
     5  
     6    normalize(typeHash, hash) {
     7      hash.PreviousAllocationId = hash.PrevAllocID ? hash.PrevAllocID : null;
     8      hash.PreviousNodeId = hash.PrevNodeID ? hash.PrevNodeID : null;
     9  
    10      return super.normalize(typeHash, hash);
    11    }
    12  }