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

Commit d7625552 by José Moreira

Revert: "Paranoid: don't required non conditional queries"

1 parent 5ba17e99
Showing with 1 additions and 5 deletions
......@@ -1577,11 +1577,7 @@ module.exports = (function() {
if ( ! this.options.paranoid ) return options || {};
options = options || {}
if( ! options.where ){
options.where = {}
options.required = options.required || false
}
options.where = options.where || {}
var deletedAtCol = this._timestampAttributes.deletedAt
, quoteIdentifiedDeletedAtCol = this.QueryInterface.quoteIdentifier(deletedAtCol)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!