c2-mongoose 2.1.185 → 2.1.186

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.
@@ -500,7 +500,7 @@ var SearchFlow = /** @class */ (function () {
500
500
  }
501
501
  else if (key.endsWith('NotExist')) {
502
502
  var fieldName = key.replace('NotExist', '');
503
- condition[fieldName] = { $exists: false };
503
+ condition[fieldName] = { $exists: value };
504
504
  filters.$and.push(condition);
505
505
  }
506
506
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.185",
3
+ "version": "2.1.186",
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",
@@ -449,7 +449,7 @@ abstract class SearchFlow {
449
449
  filters.$and.push(condition)
450
450
  } else if (key.endsWith('NotExist')) {
451
451
  var fieldName = key.replace('NotExist', '')
452
- condition[fieldName] = { $exists: false }
452
+ condition[fieldName] = { $exists: value as boolean }
453
453
  filters.$and.push(condition)
454
454
  }
455
455