c2-mongoose 2.1.5 → 2.1.7
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
|
@@ -95,7 +95,7 @@ var SearchFlow = /** @class */ (function () {
|
|
|
95
95
|
if ((0, Utils_1.isEmpty)(this.populate)) {
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
|
-
var propertiesArray = this.populate.toString.split(',');
|
|
98
|
+
var propertiesArray = this.populate.toString().split(',');
|
|
99
99
|
var populates = [];
|
|
100
100
|
for (var _i = 0, propertiesArray_1 = propertiesArray; _i < propertiesArray_1.length; _i++) {
|
|
101
101
|
var property = propertiesArray_1[_i];
|
|
@@ -181,7 +181,7 @@ var SearchFlow = /** @class */ (function () {
|
|
|
181
181
|
paging.limit = this.limit;
|
|
182
182
|
searchResponse = {};
|
|
183
183
|
searchResponse.items = items;
|
|
184
|
-
searchResponse.
|
|
184
|
+
searchResponse.paging = paging;
|
|
185
185
|
return [2 /*return*/, searchResponse];
|
|
186
186
|
}
|
|
187
187
|
});
|
package/package.json
CHANGED
package/src/flow/SearchFlow.ts
CHANGED
|
@@ -29,7 +29,7 @@ abstract class SearchFlow {
|
|
|
29
29
|
return
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
var propertiesArray = this.populate.toString.split(',')
|
|
32
|
+
var propertiesArray = this.populate.toString().split(',')
|
|
33
33
|
var populates = [] as any
|
|
34
34
|
for (var property of propertiesArray) {
|
|
35
35
|
let [first, ...rest] = property.split('.')
|
|
@@ -126,7 +126,7 @@ abstract class SearchFlow {
|
|
|
126
126
|
|
|
127
127
|
var searchResponse: SearchResponse<any> = {}
|
|
128
128
|
searchResponse.items = items
|
|
129
|
-
searchResponse.
|
|
129
|
+
searchResponse.paging = paging
|
|
130
130
|
|
|
131
131
|
return searchResponse
|
|
132
132
|
}
|