c2-mongoose 2.1.252 → 2.1.254

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.
@@ -103,12 +103,12 @@ var SearcherFlow = /** @class */ (function () {
103
103
  if ((0, Utils_1.isNotEmpty)(this.select)) {
104
104
  stagesItems.push({ $project: BuildSelectSingleFlowItem_1.default.build(this.model, this.select) });
105
105
  }
106
- stagesItems.push({ $sort: this.buildOrdenation() });
107
106
  }
107
+ stagesItems.push({ $sort: this.buildOrdenation() });
108
108
  stagesPaging = [];
109
- if ((0, Utils_1.isNotEmpty)(options.pipelines)) {
110
- stagesPaging.push.apply(stagesPaging, options.pipelines);
111
- }
109
+ // if (isNotEmpty(options.pipelines)) {
110
+ // stagesPaging.push(...options.pipelines)
111
+ // }
112
112
  if ((0, Utils_1.isNotEmpty)(options.unions)) {
113
113
  stagesPaging.push.apply(stagesPaging, options.unions);
114
114
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.252",
3
+ "version": "2.1.254",
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",
@@ -58,14 +58,14 @@ class SearcherFlow<D> {
58
58
  if (isNotEmpty(this.select)) {
59
59
  stagesItems.push({ $project: BuildSelectSingleFlowItem.build(this.model, this.select) })
60
60
  }
61
- stagesItems.push({ $sort: this.buildOrdenation() })
62
61
  }
62
+ stagesItems.push({ $sort: this.buildOrdenation() })
63
63
 
64
64
  ///
65
65
  let stagesPaging: any[] = []
66
- if (isNotEmpty(options.pipelines)) {
67
- stagesPaging.push(...options.pipelines)
68
- }
66
+ // if (isNotEmpty(options.pipelines)) {
67
+ // stagesPaging.push(...options.pipelines)
68
+ // }
69
69
  if (isNotEmpty(options.unions)) {
70
70
  stagesPaging.push(...options.unions)
71
71
  }