github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/ui/app/serializers/service.js (about)

     1  import classic from 'ember-classic-decorator';
     2  import ApplicationSerializer from './application';
     3  
     4  @classic
     5  export default class ServiceSerializer extends ApplicationSerializer {
     6    normalize(typeHash, hash) {
     7      hash.AllocationID = hash.AllocID;
     8      hash.JobID = JSON.stringify([hash.JobID, hash.Namespace]);
     9      return super.normalize(typeHash, hash);
    10    }
    11  }