@resolveio/server-lib 4.0.22 → 4.0.23
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.
|
@@ -395,7 +395,7 @@ var MethodManager = /** @class */ (function () {
|
|
|
395
395
|
case 1:
|
|
396
396
|
latency = _a.sent();
|
|
397
397
|
if (latency) {
|
|
398
|
-
log_method_latency_collection_1.LogMethodLatencies.updateOne({ _id: update.id_methodLatency }, { $set: { date_end: new Date(), latency_ms: moment().diff(moment(latency.date_start), 'milliseconds', true) } });
|
|
398
|
+
log_method_latency_collection_1.LogMethodLatencies.updateOne({ _id: update.id_methodLatency }, { $set: { date_end: new Date(), latency_ms: moment().diff(moment(latency.date_start), 'milliseconds', true) } }).exec();
|
|
399
399
|
}
|
|
400
400
|
resolve(serverRes);
|
|
401
401
|
return [2 /*return*/];
|
|
@@ -501,7 +501,7 @@ var MethodManager = /** @class */ (function () {
|
|
|
501
501
|
case 1:
|
|
502
502
|
latency = _a.sent();
|
|
503
503
|
if (latency) {
|
|
504
|
-
log_method_latency_collection_1.LogMethodLatencies.updateOne({ _id: id_methodLatency }, { $set: { date_end: new Date(), latency_ms: moment().diff(moment(latency.date_start), 'milliseconds', true) } });
|
|
504
|
+
log_method_latency_collection_1.LogMethodLatencies.updateOne({ _id: id_methodLatency }, { $set: { date_end: new Date(), latency_ms: moment().diff(moment(latency.date_start), 'milliseconds', true) } }).exec();
|
|
505
505
|
}
|
|
506
506
|
return [2 /*return*/];
|
|
507
507
|
}
|