c2-mongoose 2.1.310 → 2.1.311

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.
@@ -117,9 +117,9 @@ var SearcherFlow = /** @class */ (function () {
117
117
  stagesPaging.push({ $match: this.filters });
118
118
  stagesPaging = __spreadArray(__spreadArray([], stagesItems, true), this.buildPaginationData(), true);
119
119
  }
120
- else {
121
- stagesPaging = __spreadArray(__spreadArray([], stagesPaging, true), options.paging, true);
122
- }
120
+ // else {
121
+ // stagesPaging = [...stagesPaging, ...options.paging]
122
+ // }
123
123
  if (this.pageable === true) {
124
124
  stagesItems.push({ $skip: ((this.page - 1) * this.limit) || 0 });
125
125
  stagesItems.push({ $limit: this.limit });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.310",
3
+ "version": "2.1.311",
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",
@@ -80,9 +80,10 @@ class SearcherFlow<D> {
80
80
  if (isEmpty(options.paging) && this.pageable) {
81
81
  stagesPaging.push({ $match: this.filters })
82
82
  stagesPaging = [...stagesItems, ...this.buildPaginationData()]
83
- } else {
84
- stagesPaging = [...stagesPaging, ...options.paging]
85
- }
83
+ }
84
+ // else {
85
+ // stagesPaging = [...stagesPaging, ...options.paging]
86
+ // }
86
87
 
87
88
  if (this.pageable === true) {
88
89
  stagesItems.push({ $skip: ((this.page - 1) * this.limit) || 0 })