17 lines
438 B
JavaScript
17 lines
438 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import classic from 'ember-classic-decorator';
|
|
import ApplicationSerializer from './application';
|
|
|
|
@classic
|
|
export default class ServiceSerializer extends ApplicationSerializer {
|
|
normalize(typeHash, hash) {
|
|
hash.AllocationID = hash.AllocID;
|
|
hash.JobID = JSON.stringify([hash.JobID, hash.Namespace]);
|
|
return super.normalize(typeHash, hash);
|
|
}
|
|
}
|