c2-mongoose 2.1.24 → 2.1.25

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.
@@ -84,7 +84,7 @@ var SearchFlow = /** @class */ (function () {
84
84
  this.populate = params.populate;
85
85
  this.page = Number(params.page || undefined);
86
86
  this.limit = Number(params.limit || 25);
87
- this.pageable = params.pageable || true;
87
+ this.pageable = params.pageable == undefined ? true : params.pageable;
88
88
  this.buildPopulate();
89
89
  }
90
90
  SearchFlow.prototype.buildPopulate = function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.24",
3
+ "version": "2.1.25",
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",
@@ -23,7 +23,7 @@ abstract class SearchFlow {
23
23
  this.populate = params.populate
24
24
  this.page = Number(params.page || undefined)
25
25
  this.limit = Number(params.limit || 25)
26
- this.pageable = params.pageable || true
26
+ this.pageable = params.pageable == undefined ? true : params.pageable
27
27
  this.buildPopulate()
28
28
  }
29
29