diff --git a/AsbCloudInfrastructure/Services/WellOperationService/WellOperationsStatService.cs b/AsbCloudInfrastructure/Services/WellOperationService/WellOperationsStatService.cs index 6989d7a4..e4dd0738 100644 --- a/AsbCloudInfrastructure/Services/WellOperationService/WellOperationsStatService.cs +++ b/AsbCloudInfrastructure/Services/WellOperationService/WellOperationsStatService.cs @@ -106,6 +106,8 @@ namespace AsbCloudInfrastructure.Services.WellOperationService WellType = wellType.Caption }; + statWellDto.Companies = await wellService.GetCompaniesAsync(well.Id, token); + if (well.WellOperations is null) return statWellDto; @@ -116,7 +118,6 @@ namespace AsbCloudInfrastructure.Services.WellOperationService if (!wellOperations.Any()) return statWellDto; - statWellDto.Companies = await wellService.GetCompaniesAsync(well.Id, token); statWellDto.Sections = CalcSectionsStats(wellOperations); statWellDto.Total = GetStat(wellOperations);