From 72ce967ee315414d884a6b5c42a732e8080627c9 Mon Sep 17 00:00:00 2001 From: Jamie Rees Date: Fri, 8 Mar 2019 08:10:38 +0000 Subject: [PATCH] Added RequestId into the notification variables for #2874 --- src/Ombi.Notifications/NotificationMessageCurlys.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Ombi.Notifications/NotificationMessageCurlys.cs b/src/Ombi.Notifications/NotificationMessageCurlys.cs index cedda3735..bfa8213bc 100644 --- a/src/Ombi.Notifications/NotificationMessageCurlys.cs +++ b/src/Ombi.Notifications/NotificationMessageCurlys.cs @@ -17,7 +17,7 @@ namespace Ombi.Notifications public void Setup(NotificationOptions opts, FullBaseRequest req, CustomizationSettings s, UserNotificationPreferences pref) { LoadIssues(opts); - + RequestId = req.Id.ToString(); string title; if (req == null) { @@ -68,6 +68,7 @@ namespace Ombi.Notifications { LoadIssues(opts); + RequestId = req.Id.ToString(); string title; if (req == null) { @@ -114,6 +115,7 @@ namespace Ombi.Notifications public void Setup(NotificationOptions opts, ChildRequests req, CustomizationSettings s, UserNotificationPreferences pref) { LoadIssues(opts); + RequestId = req.Id.ToString(); string title; if (req == null) { @@ -239,6 +241,7 @@ namespace Ombi.Notifications public string UserPreference { get; set; } public string DenyReason { get; set; } public string AvailableDate { get; set; } + public string RequestId { get; set; } // System Defined private string LongDate => DateTime.Now.ToString("D"); @@ -275,6 +278,7 @@ namespace Ombi.Notifications {nameof(UserPreference),UserPreference}, {nameof(DenyReason),DenyReason}, {nameof(AvailableDate),AvailableDate}, + {nameof(RequestId),RequestId}, }; } } \ No newline at end of file