Skip to content

Commit

Permalink
Fix Job Params (#20)
Browse files Browse the repository at this point in the history
* Add quotes to params

* Update DatabricksJobsHelper.cs
  • Loading branch information
FirestarJes authored Sep 13, 2024
1 parent 3d1ae7f commit 5633fe4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private async Task<Job> 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<string>
{
Expand Down

0 comments on commit 5633fe4

Please sign in to comment.