Skip to content

Commit

Permalink
Use instant in params
Browse files Browse the repository at this point in the history
  • Loading branch information
FirestarJes committed Sep 12, 2024
1 parent 7213b70 commit c429030
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
using Energinet.DataHub.SettlementReport.Interfaces.Models;
using Energinet.DataHub.SettlementReport.Interfaces.SettlementReports_v2.Models;
using Microsoft.Azure.Databricks.Client.Models;
using NodaTime.Extensions;

namespace Energinet.DataHub.SettlementReport.Infrastructure.Helpers;

Expand Down Expand Up @@ -79,8 +80,8 @@ private RunParameters CreateParameters(SettlementReportRequestDto request, Marke
$"--report-id={reportId}",
$"--calculation-type={CalculationTypeMapper.ToDeltaTableValue(request.Filter.CalculationType)}",
$"--calculation-id-by-grid-area={gridAreas}",
$"--period-start={request.Filter.PeriodStart}",
$"--period-end={request.Filter.PeriodEnd}",
$"--period-start={request.Filter.PeriodStart.ToInstant()}",
$"--period-end={request.Filter.PeriodEnd.ToInstant()}",
$"--market-role={MapMarketRole(marketRole)}",
};
if (request.Filter.EnergySupplier != null)
Expand Down

0 comments on commit c429030

Please sign in to comment.