This commit is contained in:
Joffrey JAFFEUX 2019-05-30 17:28:07 +02:00 committed by GitHub
parent 0fbbff86ab
commit 7a21f78f8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ const RestModel = Ember.Object.extend({
this.set("isSaving", true);
return this.store
.update(this.__type, this.id, props)
.then((res) => {
.then(res => {
const payload = this.__munge(res.payload || res.responseJson);
if (payload.success === "OK") {
@ -48,7 +48,7 @@ const RestModel = Ember.Object.extend({
this.set("isSaving", true);
return adapter
.createRecord(this.store, this.__type, props)
.then((res) => {
.then(res => {
if (!res) {
throw new Error("Received no data back from createRecord");
}