mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 01:02:57 -07:00
Add RequestId variable in notification's data
This commit is contained in:
parent
824e24eaf3
commit
8eb29ab905
1 changed files with 9 additions and 0 deletions
|
@ -18,6 +18,8 @@ namespace Ombi.Notifications
|
||||||
{
|
{
|
||||||
LoadIssues(opts);
|
LoadIssues(opts);
|
||||||
|
|
||||||
|
RequestId = req?.Id.ToString();
|
||||||
|
|
||||||
string title;
|
string title;
|
||||||
if (req == null)
|
if (req == null)
|
||||||
{
|
{
|
||||||
|
@ -68,6 +70,8 @@ namespace Ombi.Notifications
|
||||||
{
|
{
|
||||||
LoadIssues(opts);
|
LoadIssues(opts);
|
||||||
|
|
||||||
|
RequestId = req?.Id.ToString();
|
||||||
|
|
||||||
string title;
|
string title;
|
||||||
if (req == null)
|
if (req == null)
|
||||||
{
|
{
|
||||||
|
@ -114,6 +118,9 @@ namespace Ombi.Notifications
|
||||||
public void Setup(NotificationOptions opts, ChildRequests req, CustomizationSettings s, UserNotificationPreferences pref)
|
public void Setup(NotificationOptions opts, ChildRequests req, CustomizationSettings s, UserNotificationPreferences pref)
|
||||||
{
|
{
|
||||||
LoadIssues(opts);
|
LoadIssues(opts);
|
||||||
|
|
||||||
|
RequestId = req?.Id.ToString();
|
||||||
|
|
||||||
string title;
|
string title;
|
||||||
if (req == null)
|
if (req == null)
|
||||||
{
|
{
|
||||||
|
@ -216,6 +223,7 @@ namespace Ombi.Notifications
|
||||||
}
|
}
|
||||||
|
|
||||||
// User Defined
|
// User Defined
|
||||||
|
public string RequestId { get; set; }
|
||||||
public string RequestedUser { get; set; }
|
public string RequestedUser { get; set; }
|
||||||
public string UserName { get; set; }
|
public string UserName { get; set; }
|
||||||
public string IssueUser => UserName;
|
public string IssueUser => UserName;
|
||||||
|
@ -248,6 +256,7 @@ namespace Ombi.Notifications
|
||||||
|
|
||||||
public Dictionary<string, string> Curlys => new Dictionary<string, string>
|
public Dictionary<string, string> Curlys => new Dictionary<string, string>
|
||||||
{
|
{
|
||||||
|
{nameof(RequestId), RequestId },
|
||||||
{nameof(RequestedUser), RequestedUser },
|
{nameof(RequestedUser), RequestedUser },
|
||||||
{nameof(Title), Title },
|
{nameof(Title), Title },
|
||||||
{nameof(RequestedDate), RequestedDate },
|
{nameof(RequestedDate), RequestedDate },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue