Fix a bug with Tags and IS NULL

This commit is contained in:
Shweelan Samson authored and Zaid Abdulla committed 2019-03-11 20:06:52 -07:00
1 parent edadfe54c8
commit b35ceca8f1
1 file changed
+1 -1
+1 -1
View File
@@ -157,7 +157,7 @@ export function filterToMongoQuery(exp: Expression): {} {
let p = (res[param] = res[param] || {});
if (negate) p = p["$not"] = p["$not"] || {};
p["$ne"] = filter[2];
p["$exists"] = true;
if (param !== "_tags") p["$exists"] = true;
} else if (op === ">") {
const param = filter[1][1];
let p = (res[param] = res[param] || {});