From 5633fe4aad0f039b3359d271c9f382cb080dd543 Mon Sep 17 00:00:00 2001 From: Jesper Justesen <1972142+FirestarJes@users.noreply.github.com> Date: Fri, 13 Sep 2024 11:25:11 +0200 Subject: [PATCH] Fix Job Params (#20) * Add quotes to params * Update DatabricksJobsHelper.cs --- .../Helpers/DatabricksJobsHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/settlement-report/SettlementReports.Infrastructure/Helpers/DatabricksJobsHelper.cs b/source/settlement-report/SettlementReports.Infrastructure/Helpers/DatabricksJobsHelper.cs index f09a642..c6bae77 100644 --- a/source/settlement-report/SettlementReports.Infrastructure/Helpers/DatabricksJobsHelper.cs +++ b/source/settlement-report/SettlementReports.Infrastructure/Helpers/DatabricksJobsHelper.cs @@ -73,7 +73,7 @@ private async Task GetSettlementReportsJobAsync(string jobName) private RunParameters CreateParameters(SettlementReportRequestDto request, MarketRole marketRole, SettlementReportRequestId reportId) { - var gridAreas = $"{{{string.Join(", ", request.Filter.GridAreas.Select(c => $"{c.Key}: {c.Value}"))}}}"; + var gridAreas = $"{{{string.Join(", ", request.Filter.GridAreas.Select(c => $"\"{c.Key}\": \"{(c.Value is null ? string.Empty : c.Value?.Id)}\""))}}}"; var jobParameters = new List {