Adds receipt validation endpoint

This commit is contained in:
Florent Vilmart
2016-02-19 13:06:02 -05:00
parent 02566f0906
commit 9c477907bf
6 changed files with 358 additions and 5 deletions

View File

@@ -90,7 +90,7 @@ RestWrite.prototype.execute = function() {
// Validates this operation against the schema.
RestWrite.prototype.validateSchema = function() {
return this.config.database.validateObject(this.className, this.data);
return this.config.database.validateObject(this.className, this.data, this.query);
};
// Runs any beforeSave triggers against this operation.