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

Commit 18225123 by José Moreira

Paranoid: don't required non conditional queries

closes #1697
1 parent b9f61180
Showing with 5 additions and 1 deletions
......@@ -1577,7 +1577,11 @@ module.exports = (function() {
if ( ! this.options.paranoid ) return options || {};
options = options || {}
options.where = options.where || {}
if( ! options.where ){
options.where = {}
options.required = false
}
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!