不要怂,就是干,撸起袖子干!

Do not run Schema Validations if 'autogenerated' prop is on

1 parent 40b0be0a
Showing with 1 additions and 1 deletions
...@@ -197,7 +197,7 @@ DaoValidator.prototype._builtinValidators = function() { ...@@ -197,7 +197,7 @@ DaoValidator.prototype._builtinValidators = function() {
var value = self.modelInstance.dataValues[field] var value = self.modelInstance.dataValues[field]
if (!rawAttribute._autoGenerated) { if (!rawAttribute._autoGenerated && !rawAttribute.autoIncrement) {
// perform validations based on schema // perform validations based on schema
self._validateSchema(rawAttribute, field, value) self._validateSchema(rawAttribute, field, value)
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!