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; diff --git a/AsbCloudWebApi/Controllers/UserSettingsController.cs b/AsbCloudWebApi/Controllers/UserSettingsController.cs index 9d0f5c99..e3e47327 100644 --- a/AsbCloudWebApi/Controllers/UserSettingsController.cs +++ b/AsbCloudWebApi/Controllers/UserSettingsController.cs @@ -94,7 +94,7 @@ namespace AsbCloudWebApi.Controllers /// [HttpDelete("/api/admin/user/{idUser}/settings")] [Permission] - public virtual async Task> DeleteAsync(int idUser, CancellationToken token) + public virtual async Task> DeleteAllAsync(int idUser, CancellationToken token) { var result = await service.DeleteAsync(idUser, token).ConfigureAwait(false);