c2-mongoose 2.1.291 → 2.1.292

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.
@@ -378,7 +378,7 @@ var SearcherFlow = /** @class */ (function () {
378
378
  conditionsAnd = __assign(__assign({}, conditionsAnd), condition);
379
379
  });
380
380
  if (conditionsAnd) {
381
- and = { $and: conditionsAnd };
381
+ and = { $and: [conditionsAnd] };
382
382
  }
383
383
  };
384
384
  for (var _d = 0, _e = clauseOr.and; _d < _e.length; _d++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.291",
3
+ "version": "2.1.292",
4
4
  "description": "Lib to make any search in database mongoose and use as basic crud",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -363,7 +363,7 @@ class SearcherFlow<D> {
363
363
  })
364
364
 
365
365
  if (conditionsAnd) {
366
- and = { $and: conditionsAnd }
366
+ and = { $and: [conditionsAnd] }
367
367
  }
368
368
  }
369
369