diff --git a/AsbCloudInfrastructure/Services/DetectOperations/DetectedOperationService.cs b/AsbCloudInfrastructure/Services/DetectOperations/DetectedOperationService.cs index db2ca4ea..d583bbf7 100644 --- a/AsbCloudInfrastructure/Services/DetectOperations/DetectedOperationService.cs +++ b/AsbCloudInfrastructure/Services/DetectOperations/DetectedOperationService.cs @@ -238,9 +238,7 @@ public class DetectedOperationService : IDetectedOperationService positionBegin += 1; } - var lastDate = lastDetectedOperation?.DateEnd ?? detectableTelemetries[positionEnd].DateTime; - - return (lastDate, detectedOperations); + return (detectableTelemetries[positionBegin].DateTime, detectedOperations); } public async Task DeleteAsync(DetectedOperationByWellRequest request, CancellationToken token)