* Adds test to repro #2672 * Run schema validation after beforeSave is run * Makes authData part of base _User object * exclude flaky pg test
This commit is contained in:
@@ -62,8 +62,6 @@ RestWrite.prototype.execute = function() {
|
||||
return this.getUserAndRoleACL();
|
||||
}).then(() => {
|
||||
return this.validateClientClassCreation();
|
||||
}).then(() => {
|
||||
return this.validateSchema();
|
||||
}).then(() => {
|
||||
return this.handleInstallation();
|
||||
}).then(() => {
|
||||
@@ -72,6 +70,8 @@ RestWrite.prototype.execute = function() {
|
||||
return this.validateAuthData();
|
||||
}).then(() => {
|
||||
return this.runBeforeTrigger();
|
||||
}).then(() => {
|
||||
return this.validateSchema();
|
||||
}).then(() => {
|
||||
return this.setRequiredFieldsIfNeeded();
|
||||
}).then(() => {
|
||||
@@ -176,7 +176,6 @@ RestWrite.prototype.runBeforeTrigger = function() {
|
||||
if (this.query && this.query.objectId) {
|
||||
delete this.data.objectId
|
||||
}
|
||||
return this.validateSchema();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user