mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
fix(notificaitons): Add the RequestedByAlias field to the Notification Message
This commit is contained in:
parent
9aedb8c6ba
commit
7e9c8bec6b
1 changed files with 3 additions and 0 deletions
|
@ -153,6 +153,7 @@ namespace Ombi.Notifications
|
||||||
RequestedUser = req?.RequestedUser?.UserName;
|
RequestedUser = req?.RequestedUser?.UserName;
|
||||||
RequestedDate = req?.RequestedDate.ToString("D");
|
RequestedDate = req?.RequestedDate.ToString("D");
|
||||||
DetailsUrl = GetDetailsUrl(s, req);
|
DetailsUrl = GetDetailsUrl(s, req);
|
||||||
|
RequestedByAlias = req?.RequestedByAlias;
|
||||||
|
|
||||||
if (Type.IsNullOrEmpty())
|
if (Type.IsNullOrEmpty())
|
||||||
{
|
{
|
||||||
|
@ -276,6 +277,7 @@ namespace Ombi.Notifications
|
||||||
// User Defined
|
// User Defined
|
||||||
public string RequestId { get; set; }
|
public string RequestId { get; set; }
|
||||||
public string RequestedUser { get; set; }
|
public string RequestedUser { get; set; }
|
||||||
|
public string RequestedByAlias { get; set; }
|
||||||
public string UserName { get; set; }
|
public string UserName { get; set; }
|
||||||
public string IssueUser => UserName;
|
public string IssueUser => UserName;
|
||||||
public string Alias { get; set; }
|
public string Alias { get; set; }
|
||||||
|
@ -339,6 +341,7 @@ namespace Ombi.Notifications
|
||||||
{ nameof(IssueUser), IssueUser },
|
{ nameof(IssueUser), IssueUser },
|
||||||
{ nameof(UserName), UserName },
|
{ nameof(UserName), UserName },
|
||||||
{ nameof(Alias), Alias },
|
{ nameof(Alias), Alias },
|
||||||
|
{ nameof(RequestedByAlias), RequestedByAlias },
|
||||||
{ nameof(UserPreference), UserPreference },
|
{ nameof(UserPreference), UserPreference },
|
||||||
{ nameof(DenyReason), DenyReason },
|
{ nameof(DenyReason), DenyReason },
|
||||||
{ nameof(AvailableDate), AvailableDate },
|
{ nameof(AvailableDate), AvailableDate },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue