c2-mongoose 2.1.149 → 2.1.150

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.
@@ -475,6 +475,7 @@ var SearchFlow = /** @class */ (function () {
475
475
  arr.push(val);
476
476
  }
477
477
  if (key.startsWith("notIn")) {
478
+ key = key.replace("notIn", "");
478
479
  condition[key] = { $nin: arr };
479
480
  }
480
481
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.149",
3
+ "version": "2.1.150",
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",
@@ -429,6 +429,7 @@ abstract class SearchFlow {
429
429
  }
430
430
 
431
431
  if (key.startsWith("notIn")) {
432
+ key = key.replace("notIn", "")
432
433
  condition[key] = { $nin: arr }
433
434
  }else{
434
435
  condition[key] = { $in: arr }