c2-mongoose 2.1.323 → 2.1.324

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.
@@ -1,6 +1,8 @@
1
1
  import mongoose from "mongoose";
2
2
  declare class MatchFlowItem {
3
- exec(filters: any, model: mongoose.Model<any>): any;
3
+ exec(filters: any, model: mongoose.Model<any>): {
4
+ $match: any;
5
+ }[];
4
6
  }
5
7
  declare const _default: MatchFlowItem;
6
8
  export default _default;
@@ -125,7 +125,7 @@ var MatchFlowItem = /** @class */ (function () {
125
125
  filtersFinal.$or = [];
126
126
  filtersFinal.$or = __spreadArray(__spreadArray([], filtersFinal.$or, true), orPayload, true);
127
127
  }
128
- return filtersFinal;
128
+ return [{ $match: filtersFinal }];
129
129
  };
130
130
  return MatchFlowItem;
131
131
  }());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.323",
3
+ "version": "2.1.324",
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",
@@ -105,7 +105,7 @@ class MatchFlowItem {
105
105
  }
106
106
 
107
107
 
108
- return filtersFinal
108
+ return [{ $match: filtersFinal }]
109
109
 
110
110
  }
111
111
  }