From c7345baf8b8912898a2343552f4b965ecad38e7b Mon Sep 17 00:00:00 2001 From: Jesper Justesen <1972142+FirestarJes@users.noreply.github.com> Date: Thu, 12 Sep 2024 21:03:02 +0200 Subject: [PATCH] Fixed nullable property which was not nullable also add another missing dependency --- .../SettlementReports_v2/Models/RequestedSettlementReportDto.cs | 2 +- .../DependencyInjection/SettlementReportModuleExtensions.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/settlement-report/SettlementReports.Interfaces/SettlementReports_v2/Models/RequestedSettlementReportDto.cs b/source/settlement-report/SettlementReports.Interfaces/SettlementReports_v2/Models/RequestedSettlementReportDto.cs index 645ba6b..31e3d40 100644 --- a/source/settlement-report/SettlementReports.Interfaces/SettlementReports_v2/Models/RequestedSettlementReportDto.cs +++ b/source/settlement-report/SettlementReports.Interfaces/SettlementReports_v2/Models/RequestedSettlementReportDto.cs @@ -17,7 +17,7 @@ namespace Energinet.DataHub.SettlementReport.Interfaces.SettlementReports_v2.Models; public sealed record RequestedSettlementReportDto( - SettlementReportRequestId? RequestId, + SettlementReportRequestId RequestId, CalculationType CalculationType, DateTimeOffset PeriodStart, DateTimeOffset PeriodEnd, diff --git a/source/settlement-report/SettlementReports.WebAPI/Extensions/DependencyInjection/SettlementReportModuleExtensions.cs b/source/settlement-report/SettlementReports.WebAPI/Extensions/DependencyInjection/SettlementReportModuleExtensions.cs index ec68994..07e487a 100644 --- a/source/settlement-report/SettlementReports.WebAPI/Extensions/DependencyInjection/SettlementReportModuleExtensions.cs +++ b/source/settlement-report/SettlementReports.WebAPI/Extensions/DependencyInjection/SettlementReportModuleExtensions.cs @@ -41,6 +41,7 @@ public static IServiceCollection AddSettlementReportApiModule(this IServiceColle services.AddScoped(); services.AddScoped(); services.AddScoped(); + services.AddScoped(); services.AddSettlementReportBlobStorage(); // Database Health check