Remove record.toJSON() (#14584)

* fix

* test

* change back
This commit is contained in:
Angel Garbarino 2022-03-18 17:08:54 -06:00 committed by GitHub
parent 3c2659b09d
commit 2615668aad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ export default ApplicationAdapter.extend({
return this.ajax(this.buildURL(type.modelName, name), 'PUT', { data }).then(() => { return this.ajax(this.buildURL(type.modelName, name), 'PUT', { data }).then(() => {
// doing this to make it like a Vault response - ember data doesn't like 204s if it's not a DELETE // doing this to make it like a Vault response - ember data doesn't like 204s if it's not a DELETE
return { return {
data: assign({}, snapshot.record.toJSON(), { id: name }), data: assign({}, this.serialize(snapshot), { id: name }),
}; };
}); });
}, },