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

Commit a56a1882 by Mick Hansen

Merge pull request #4112 from sequelize/sdepold-patch-1

Check for `and` or `or`
2 parents cc52cb82 c9937b8f
Showing with 1 additions and 1 deletions
...@@ -2091,7 +2091,7 @@ var QueryGenerator = { ...@@ -2091,7 +2091,7 @@ var QueryGenerator = {
} }
if (smth && smth._isSequelizeMethod === true) { // Checking a property is cheaper than a lot of instanceof calls if (smth && smth._isSequelizeMethod === true) { // Checking a property is cheaper than a lot of instanceof calls
if (smth instanceof Utils.and || smth instanceof Utils.and) { if (smth instanceof Utils.and || smth instanceof Utils.or) {
return self.whereItemsQuery(smth, { return self.whereItemsQuery(smth, {
model: factory, model: factory,
prefix: prepend && tableName prefix: prepend && tableName
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!