From e29f21c29197ade852585e1e360429137fba81cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=82=D0=B5=D0=BF=D0=B0=D0=BD=D0=BE=D0=B2=20=D0=94?= =?UTF-8?q?=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Thu, 25 Jul 2024 11:50:56 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B1=D0=B5=D0=BA?= =?UTF-8?q?=D0=B3=D1=80=D0=B0=D1=84=D0=BD=D1=83=D0=B4=20=D1=81=D0=B5=D1=80?= =?UTF-8?q?=D0=B2=D0=B8=D1=81=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/DetectOperations/WorkOperationDetection.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/AsbCloudInfrastructure/Services/DetectOperations/WorkOperationDetection.cs b/AsbCloudInfrastructure/Services/DetectOperations/WorkOperationDetection.cs index 6ad52f4b..cb569515 100644 --- a/AsbCloudInfrastructure/Services/DetectOperations/WorkOperationDetection.cs +++ b/AsbCloudInfrastructure/Services/DetectOperations/WorkOperationDetection.cs @@ -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;