Fix bug in Mongo query conversion

This commit is contained in:
Zaid Abdulla committed 2018-12-26 00:22:07 -08:00
1 parent 991ca16e03
commit 518254aa55
1 file changed
+1 -1
+1 -1
View File
@@ -376,7 +376,7 @@ function mongoQueryToFilter(query) {
} }
} else if (k.startsWith("Tags.")) { } else if (k.startsWith("Tags.")) {
expressions.push([ expressions.push([
`IS${v["$exists"] ? " " : " NOT "}NULL`, v["$exists"] ? "IS NOT NULL" : "IS NULL",
["PARAM", k] ["PARAM", k]
]); ]);
} else if (typeof v === "object") { } else if (typeof v === "object") {