From cd1c7df8f0755d0e5c5c9e05b472b132850ec8d2 Mon Sep 17 00:00:00 2001 From: Jesper Justesen <1972142+FirestarJes@users.noreply.github.com> Date: Tue, 29 Oct 2024 10:21:45 +0100 Subject: [PATCH] Update IntegrationEventProvider.cs --- .../Notifications/IntegrationEventProvider.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/settlement-report/SettlementReports.Infrastructure/Notifications/IntegrationEventProvider.cs b/source/settlement-report/SettlementReports.Infrastructure/Notifications/IntegrationEventProvider.cs index 5969808..19f17c7 100644 --- a/source/settlement-report/SettlementReports.Infrastructure/Notifications/IntegrationEventProvider.cs +++ b/source/settlement-report/SettlementReports.Infrastructure/Notifications/IntegrationEventProvider.cs @@ -60,11 +60,12 @@ private Task CreateAsync(Application.SettlementReports_v2.Sett { ReasonIdentifier = status switch { - SettlementReportStatus.Completed => "SettlementReportCompleted", + SettlementReportStatus.Completed => "SettlementReportReadyForDownload", SettlementReportStatus.Failed => "SettlementReportFailed", _ => throw new InvalidOperationException("Sending notification for settlement report with status other than Completed or Failed is not supported"), }, TargetActorId = reportForNotification.ActorId.ToString(), + TargetUserId = reportForNotification.UserId.ToString(), RelatedId = reportForNotification.Id.ToString(), OccurredAt = now.ToTimestamp(), ExpiresAt = now.AddHours(23).ToTimestamp(),