github.com/hernad/nomad@v1.6.112/ui/app/serializers/reschedule-event.js (about) 1 /** 2 * Copyright (c) HashiCorp, Inc. 3 * SPDX-License-Identifier: MPL-2.0 4 */ 5 6 import ApplicationSerializer from './application'; 7 8 import classic from 'ember-classic-decorator'; 9 10 @classic 11 export default class RescheduleEvent extends ApplicationSerializer { 12 separateNanos = ['Time']; 13 14 normalize(typeHash, hash) { 15 hash.PreviousAllocationId = hash.PrevAllocID ? hash.PrevAllocID : null; 16 hash.PreviousNodeId = hash.PrevNodeID ? hash.PrevNodeID : null; 17 18 return super.normalize(typeHash, hash); 19 } 20 }