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

Commit 3fd1f1f3 by Mick Hansen

fix(sql/where): issue with in/notIn normalization

1 parent e2bc07d6
Showing with 1 additions and 1 deletions
......@@ -1703,7 +1703,7 @@ module.exports = (function() {
}
// Do [] to $in/$notIn normalization
if (value && !fieldType || !fieldType instanceof DataTypes.ARRAY) {
if (value && (!fieldType || !(fieldType instanceof DataTypes.ARRAY))) {
if (Array.isArray(value)) {
value = {
$in: value
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!