c2-mongoose 2.1.27 → 2.1.29
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.
package/dist/flow/SearchFlow.js
CHANGED
|
@@ -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 ==
|
|
87
|
+
this.pageable = params.pageable == false || 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
package/src/flow/SearchFlow.ts
CHANGED
|
@@ -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 ==
|
|
26
|
+
this.pageable = params.pageable == false || 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 []
|