@resolveio/server-lib 20.12.8 → 20.12.9
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.
|
@@ -580,7 +580,7 @@ var MongoManager = /** @class */ (function () {
|
|
|
580
580
|
};
|
|
581
581
|
MongoManager.prototype.executeAggregate = function (collectionName, pipeline, options, cacheKey, collections) {
|
|
582
582
|
return __awaiter(this, void 0, void 0, function () {
|
|
583
|
-
var result, collection, _a, session, safeOptions, monitor, queryStart, err_3, durationMs
|
|
583
|
+
var result, collection, _a, session, safeOptions, monitor, queryStart, err_3, durationMs;
|
|
584
584
|
return __generator(this, function (_b) {
|
|
585
585
|
switch (_b.label) {
|
|
586
586
|
case 0:
|
|
@@ -610,10 +610,8 @@ var MongoManager = /** @class */ (function () {
|
|
|
610
610
|
return [4 /*yield*/, monitor.finish()];
|
|
611
611
|
case 5:
|
|
612
612
|
_b.sent();
|
|
613
|
-
aggregateFilter = pipeline && pipeline.length ? { pipeline: pipeline } : undefined;
|
|
614
613
|
slow_query_reporter_1.SlowQueryReporter.reportSlowQueryFireAndForget({
|
|
615
614
|
collection: collectionName,
|
|
616
|
-
filter: aggregateFilter,
|
|
617
615
|
pipeline: pipeline,
|
|
618
616
|
options: safeOptions,
|
|
619
617
|
durationMs: durationMs,
|