Skip to content

Commit 8943826

Browse files
committed
🎉 fixes #1288
1 parent 6fd92c8 commit 8943826

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

spec/ParseAPI.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,7 @@ describe('miscellaneous', function() {
644644
return obj.save();
645645
}).then((obj) => {
646646
expect(obj.get('point').id).toEqual(pointId);
647+
Parse.Cloud._removeHook("Triggers", "beforeSave", "GameScore");
647648
done();
648649
})
649650
});

src/RestWrite.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ RestWrite.prototype.runBeforeTrigger = function() {
169169
if (this.query && this.query.objectId) {
170170
delete this.data.objectId
171171
}
172+
return this.validateSchema();
172173
}
173174
});
174175
};
@@ -302,7 +303,7 @@ RestWrite.prototype.handleAuthData = function(authData) {
302303
'this auth is already used');
303304
}
304305
}
305-
}
306+
}
306307
return Promise.resolve();
307308
});
308309
}

0 commit comments

Comments
 (0)