From f6ac5b5a98a763312146e34ebbcc602db857020d Mon Sep 17 00:00:00 2001 From: ngfrolov Date: Fri, 28 Jul 2023 15:28:30 +0500 Subject: [PATCH] OperationsStatService.GetTvdAsync() Fin exception then empty operations. --- .../Services/WellOperationService/OperationsStatService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AsbCloudInfrastructure/Services/WellOperationService/OperationsStatService.cs b/AsbCloudInfrastructure/Services/WellOperationService/OperationsStatService.cs index ea74cd8b..2757dbfd 100644 --- a/AsbCloudInfrastructure/Services/WellOperationService/OperationsStatService.cs +++ b/AsbCloudInfrastructure/Services/WellOperationService/OperationsStatService.cs @@ -431,6 +431,9 @@ namespace AsbCloudInfrastructure.Services.WellOperationService var tzOffsetHours = wellService.GetTimezone(idWell).Hours; var merged = MergeArraysBySections(sectionsIds, wellOperationsPlan, wellOperationsFact).ToList(); + if (merged.Count ==0) + return Enumerable.Empty>(); + var tvd = new List>(merged.Count); var (Plan, Fact) = merged.FirstOrDefault(); var dateStart = Plan?.DateStart ?? Fact!.DateStart;