Files
threshold-ui/ui/core/mirage/serializers/account.js
T
Susmitha Girumala dc68dfad85 test: Add missing account serializer test
Delete account password attribute in mirage to mimic API exactly
2020-09-15 11:00:00 -04:00

13 lines
344 B
JavaScript

import ApplicationSerializer from './application';
export default ApplicationSerializer.extend({
modelName: 'account',
_hashForModel(model) {
const json = ApplicationSerializer.prototype._hashForModel.apply(this, arguments);
json.auth_method_id = model.authMethodId;
delete json.attributes?.password;
return json;
}
});