c2-mongoose 2.1.129 → 2.1.130
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
|
@@ -230,9 +230,6 @@ var SearchFlow = /** @class */ (function () {
|
|
|
230
230
|
if ((0, Utils_1.isNotEmpty)(this.projection)) {
|
|
231
231
|
stagesItems.push({ $project: this.projection });
|
|
232
232
|
}
|
|
233
|
-
if ((0, Utils_1.isNotEmpty)(options.pipelines)) {
|
|
234
|
-
stagesItems.push.apply(stagesItems, options.pipelines);
|
|
235
|
-
}
|
|
236
233
|
stagesItems.push({ $sort: this.sort });
|
|
237
234
|
stagesItems.push({ $skip: ((this.page - 1) * this.limit) || 0 });
|
|
238
235
|
stagesItems.push({ $limit: this.limit });
|
package/package.json
CHANGED
package/src/flow/SearchFlow.ts
CHANGED
|
@@ -193,10 +193,6 @@ abstract class SearchFlow {
|
|
|
193
193
|
stagesItems.push({ $project: this.projection })
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
if (isNotEmpty(options.pipelines)) {
|
|
197
|
-
stagesItems.push(...options.pipelines)
|
|
198
|
-
}
|
|
199
|
-
|
|
200
196
|
stagesItems.push({ $sort: this.sort })
|
|
201
197
|
stagesItems.push({ $skip: ((this.page - 1) * this.limit) || 0 })
|
|
202
198
|
stagesItems.push({ $limit: this.limit })
|