c2-mongoose 2.1.27 → 2.1.28

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 || 1);
86
86
  this.limit = Number(params.limit || 25);
87
- this.pageable = params.pageable == true ? true : false;
87
+ this.pageable = params.pageable == false ? false : true;
88
88
  this.buildPopulate();
89
89
  }
90
90
  SearchFlow.prototype.buildPopulate = function () {
@@ -153,7 +153,6 @@ var SearchFlow = /** @class */ (function () {
153
153
  .find(this.filters, this.select)
154
154
  .populate(this.populate)
155
155
  .sort(sort)
156
- .limit(this.limit)
157
156
  .collation({
158
157
  locale: Environment_1.dbCollation || "pt"
159
158
  })];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.27",
3
+ "version": "2.1.28",
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 || 1)
25
25
  this.limit = Number(params.limit || 25)
26
- this.pageable = params.pageable == true ? true : false
26
+ this.pageable = params.pageable == false ? false : true
27
27
  this.buildPopulate()
28
28
  }
29
29
 
@@ -100,7 +100,6 @@ abstract class SearchFlow {
100
100
  .find(this.filters, this.select)
101
101
  .populate(this.populate)
102
102
  .sort(sort)
103
- .limit(this.limit)
104
103
  .collation({
105
104
  locale: dbCollation || "pt"
106
105
  }) as []