mongo-query-builder-chain
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -26,3 +26,4 @@ const mongoQBModule = require('./module'); | ||
.sort("field4", -1) | ||
.$searchRemove() | ||
.getValue() | ||
); |
@@ -274,6 +274,8 @@ var helpers = require('./helpers'); | ||
$searchRemove() { | ||
delete this.body.query.$text.$search; | ||
if (this.body.query.$text) { | ||
delete this.body.query.$text.$search; | ||
if (!Object.keys(this.body.query.$text).length) { | ||
delete this.body.query.$text; | ||
if (!Object.keys(this.body.query.$text).length) { | ||
delete this.body.query.$text; | ||
} | ||
} | ||
@@ -280,0 +282,0 @@ |
@@ -20,3 +20,3 @@ { | ||
"type": "module", | ||
"version": "1.0.3" | ||
"version": "1.0.4" | ||
} |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
14126
304
1