mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-13 16:52:56 -07:00
Added RequestId into the notification variables for #2874
This commit is contained in:
parent
fd299b92ee
commit
72ce967ee3
1 changed files with 5 additions and 1 deletions
|
@ -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},
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue