Skip to content

Commit

Permalink
fix(notificaitons): Add the RequestedByAlias field to the Notificatio…
Browse files Browse the repository at this point in the history
…n Message
  • Loading branch information
Fire-Swan authored May 9, 2023
1 parent 9aedb8c commit 7e9c8be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Ombi.Notifications/NotificationMessageCurlys.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ private void LoadCommon(BaseRequest req, CustomizationSettings s, UserNotificati
RequestedUser = req?.RequestedUser?.UserName;
RequestedDate = req?.RequestedDate.ToString("D");
DetailsUrl = GetDetailsUrl(s, req);
RequestedByAlias = req?.RequestedByAlias;

if (Type.IsNullOrEmpty())
{
Expand Down Expand Up @@ -276,6 +277,7 @@ private void CalculateRequestStatus(BaseRequest req)
// User Defined
public string RequestId { get; set; }
public string RequestedUser { get; set; }
public string RequestedByAlias { get; set; }
public string UserName { get; set; }
public string IssueUser => UserName;
public string Alias { get; set; }
Expand Down Expand Up @@ -339,6 +341,7 @@ private void CalculateRequestStatus(BaseRequest req)
{ nameof(IssueUser), IssueUser },
{ nameof(UserName), UserName },
{ nameof(Alias), Alias },
{ nameof(RequestedByAlias), RequestedByAlias },
{ nameof(UserPreference), UserPreference },
{ nameof(DenyReason), DenyReason },
{ nameof(AvailableDate), AvailableDate },
Expand Down

0 comments on commit 7e9c8be

Please sign in to comment.