c2-mongoose 2.1.129 → 2.1.130

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.
@@ -230,9 +230,6 @@ var SearchFlow = /** @class */ (function () {
230
230
  if ((0, Utils_1.isNotEmpty)(this.projection)) {
231
231
  stagesItems.push({ $project: this.projection });
232
232
  }
233
- if ((0, Utils_1.isNotEmpty)(options.pipelines)) {
234
- stagesItems.push.apply(stagesItems, options.pipelines);
235
- }
236
233
  stagesItems.push({ $sort: this.sort });
237
234
  stagesItems.push({ $skip: ((this.page - 1) * this.limit) || 0 });
238
235
  stagesItems.push({ $limit: this.limit });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.129",
3
+ "version": "2.1.130",
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",
@@ -193,10 +193,6 @@ abstract class SearchFlow {
193
193
  stagesItems.push({ $project: this.projection })
194
194
  }
195
195
 
196
- if (isNotEmpty(options.pipelines)) {
197
- stagesItems.push(...options.pipelines)
198
- }
199
-
200
196
  stagesItems.push({ $sort: this.sort })
201
197
  stagesItems.push({ $skip: ((this.page - 1) * this.limit) || 0 })
202
198
  stagesItems.push({ $limit: this.limit })