Skip to content

Commit

Permalink
Update SettlementReportMutation.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
FirestarJes committed Oct 1, 2024
1 parent 819da23 commit f25aa12
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public async Task<bool> RequestSettlementReportAsync(
[Service] IMarketParticipantClient_V1 marketPartClient,
[Service] ISettlementReportsClient client)
{
var requestAsActor = string.IsNullOrEmpty(requestSettlementReportInput.RequestAsActorId)
? null
: await marketPartClient.ActorGetAsync(Guid.Parse(requestSettlementReportInput.RequestAsActorId));
var requestAsActor = Guid.TryParse(requestSettlementReportInput.RequestAsActorId, out var actorNumber)
? await marketPartClient.ActorGetAsync(actorNumber)
: null;

var requestFilter = new SettlementReportRequestFilterDto(
requestSettlementReportInput.GridAreasWithCalculations.ToDictionary(
Expand Down

0 comments on commit f25aa12

Please sign in to comment.