Фикс бекграфнуд сервиса

This commit is contained in:
Степанов Дмитрий 2024-07-25 11:50:56 +03:00
parent d7e9c4f893
commit e29f21c291

View File

@ -50,7 +50,7 @@ public class WorkOperationDetection : Work
for (int i = 0; i < idsTelemetry.Length; i++)
{
var idTelemetry = idsTelemetry[i];
if (!telemetriesDateRanges.TryGetValue(idTelemetry, out var telemetryDateRange))
continue;
@ -80,8 +80,6 @@ public class WorkOperationDetection : Work
var detectedOperations =
await detectedOperationService.DetectOperationsAsync(idTelemetry, request, lastDetectedOperation, token);
await detectedOperationRepository.InsertRangeAsync(detectedOperations.Items, token);
dateBegin = detectedOperations.LastDate.UtcDateTime;
CacheOfStartDatesByTelemetryId[idTelemetry] = dateBegin;