c2-mongoose 2.1.276 → 2.1.277
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -219,7 +219,7 @@ var SearcherFlow = /** @class */ (function () {
|
|
|
219
219
|
Object.entries(objectSearch).forEach(function (_a) {
|
|
220
220
|
var _b, _c, _d;
|
|
221
221
|
var key = _a[0], value = _a[1];
|
|
222
|
-
if ((0, Utils_1.isNotEmpty)(value)) {
|
|
222
|
+
if ((0, Utils_1.isNotEmpty)(value) || value === null) {
|
|
223
223
|
var condition = {};
|
|
224
224
|
if ([
|
|
225
225
|
'filters',
|
package/package.json
CHANGED
package/src/flow/SearcherFlow.ts
CHANGED
|
@@ -181,7 +181,7 @@ class SearcherFlow<D> {
|
|
|
181
181
|
|
|
182
182
|
let filters = { $and: [] } as any
|
|
183
183
|
Object.entries(objectSearch).forEach(([key, value]) => {
|
|
184
|
-
if (isNotEmpty(value)) {
|
|
184
|
+
if (isNotEmpty(value) || value === null) {
|
|
185
185
|
let condition = {} as any
|
|
186
186
|
if ([
|
|
187
187
|
'filters',
|