c2-mongoose 2.1.289 → 2.1.290

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.
@@ -375,7 +375,7 @@ var SearcherFlow = /** @class */ (function () {
375
375
  if (!conditionsAnd) {
376
376
  conditionsAnd = {};
377
377
  }
378
- conditionsAnd = __assign(__assign({}, conditionsAnd), { condition: condition });
378
+ conditionsAnd = __assign(__assign({}, conditionsAnd), condition);
379
379
  });
380
380
  if (conditionsAnd) {
381
381
  and.push({ $and: conditionsAnd });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.289",
3
+ "version": "2.1.290",
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",
@@ -359,7 +359,7 @@ class SearcherFlow<D> {
359
359
  if (!conditionsAnd) {
360
360
  conditionsAnd = {}
361
361
  }
362
- conditionsAnd = { ...conditionsAnd, condition }
362
+ conditionsAnd = { ...conditionsAnd, ...condition }
363
363
  })
364
364
 
365
365
  if (conditionsAnd) {