Files
threshold-ui/ui/core/mirage/serializers/account.js
T

12 lines
344 B
JavaScript
Raw Normal View History

2020-09-14 11:26:54 -04:00
import ApplicationSerializer from './application';
export default ApplicationSerializer.extend({
2020-09-14 15:50:29 -04:00
modelName: 'account',
_hashForModel(model) {
const json = ApplicationSerializer.prototype._hashForModel.apply(this, arguments);
json.auth_method_id = model.authMethodId;
2020-09-15 11:00:00 -04:00
delete json.attributes?.password;
2020-09-14 15:50:29 -04:00
return json;
}
2020-09-14 11:26:54 -04:00
});