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

Commit 01abe949 by Daniel Durante

Default values for whereCollection is now null everywhere.

1 parent a08d1ca4
Showing with 3 additions and 3 deletions
......@@ -154,7 +154,7 @@ module.exports = (function() {
}.bind(this));
// whereCollection is used for non-primary key updates
this.options.whereCollection = options.where || undefined;
this.options.whereCollection = options.where || null;
}
return this.QueryInterface.select(this, this.tableName, options, { type: 'SELECT', hasJoin: hasJoin })
......@@ -166,7 +166,7 @@ module.exports = (function() {
optcpy.attributes = optcpy.attributes || [Utils.addTicks(this.tableName)+".*"]
// whereCollection is used for non-primary key updates
this.options.whereCollection = optcpy.where || undefined;
this.options.whereCollection = optcpy.where || null;
return this.QueryInterface.select(this, [this.tableName, joinTableName], optcpy, { type: 'SELECT' })
}
......@@ -220,7 +220,7 @@ module.exports = (function() {
}.bind(this));
// whereCollection is used for non-primary key updates
this.options.whereCollection = options.where || undefined;
this.options.whereCollection = options.where || null;
}
options.limit = 1
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!