c2-mongoose 2.1.310 → 2.1.312

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.
@@ -113,7 +113,7 @@ var SearcherFlow = /** @class */ (function () {
113
113
  if ((0, Utils_1.isNotEmpty)(options.unions)) {
114
114
  stagesPaging.push.apply(stagesPaging, options.unions);
115
115
  }
116
- if ((0, Utils_1.isEmpty)(options.paging) && this.pageable) {
116
+ if ((0, Utils_1.isEmpty)(options.paging)) {
117
117
  stagesPaging.push({ $match: this.filters });
118
118
  stagesPaging = __spreadArray(__spreadArray([], stagesItems, true), this.buildPaginationData(), true);
119
119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.310",
3
+ "version": "2.1.312",
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",
@@ -77,7 +77,7 @@ class SearcherFlow<D> {
77
77
  }
78
78
 
79
79
 
80
- if (isEmpty(options.paging) && this.pageable) {
80
+ if (isEmpty(options.paging)) {
81
81
  stagesPaging.push({ $match: this.filters })
82
82
  stagesPaging = [...stagesItems, ...this.buildPaginationData()]
83
83
  } else {