* style: 💄 Update trailing commas in API * style: 💄 Update trailing commas in core * style: 💄 Update trailing commas in rose * style: 💄 Update trailing commas in admin * style: 💄 Update trailing commas in desktop
23 lines
562 B
JavaScript
23 lines
562 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import ApplicationSerializer from './application';
|
|
|
|
export default ApplicationSerializer.extend({
|
|
modelName: 'credential-store',
|
|
|
|
_hashForModel(/* model */) {
|
|
const json = ApplicationSerializer.prototype._hashForModel.apply(
|
|
this,
|
|
arguments,
|
|
);
|
|
// in a real API, the following fields are set-only and returned in
|
|
// associated HMAC fields
|
|
delete json.attributes?.token;
|
|
delete json.attributes?.client_certificate_key;
|
|
return json;
|
|
},
|
|
});
|