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;