Skip to content

Commit

Permalink
🎉 fixes #1288
Browse files Browse the repository at this point in the history
  • Loading branch information
flovilmart committed Apr 4, 2016
1 parent 6fd92c8 commit 8943826
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions spec/ParseAPI.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@ describe('miscellaneous', function() {
return obj.save();
}).then((obj) => {
expect(obj.get('point').id).toEqual(pointId);
Parse.Cloud._removeHook("Triggers", "beforeSave", "GameScore");
done();
})
});
Expand Down
3 changes: 2 additions & 1 deletion src/RestWrite.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ RestWrite.prototype.runBeforeTrigger = function() {
if (this.query && this.query.objectId) {
delete this.data.objectId
}
return this.validateSchema();
}
});
};
Expand Down Expand Up @@ -302,7 +303,7 @@ RestWrite.prototype.handleAuthData = function(authData) {
'this auth is already used');
}
}
}
}
return Promise.resolve();
});
}
Expand Down

0 comments on commit 8943826

Please sign in to comment.