c2-mongoose 2.1.41 → 2.1.42
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 +4 -12
- package/package.json +1 -1
- package/src/flow/SearchFlow.ts +1 -1
package/dist/flow/SearchFlow.js
CHANGED
|
@@ -46,15 +46,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46
46
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
50
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
51
|
-
if (ar || !(i in from)) {
|
|
52
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
53
|
-
ar[i] = from[i];
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
57
|
-
};
|
|
58
49
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
59
50
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
60
51
|
};
|
|
@@ -157,12 +148,13 @@ var SearchFlow = /** @class */ (function () {
|
|
|
157
148
|
case 0: return [4 /*yield*/, model.aggregate([
|
|
158
149
|
{
|
|
159
150
|
$facet: {
|
|
160
|
-
items:
|
|
151
|
+
items: [
|
|
161
152
|
{ $match: this.filters },
|
|
162
153
|
{ $sort: this.sort },
|
|
163
154
|
{ $skip: (this.page - 1) * this.limit },
|
|
164
|
-
{ $limit: this.limit }
|
|
165
|
-
|
|
155
|
+
{ $limit: this.limit },
|
|
156
|
+
pipeline
|
|
157
|
+
],
|
|
166
158
|
paging: [
|
|
167
159
|
{ $match: this.filters },
|
|
168
160
|
{ $count: "total" },
|
package/package.json
CHANGED