mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-31 03:50:08 -07:00
!wip missing changes
This commit is contained in:
parent
408a3b446d
commit
817c4f9ec1
2 changed files with 9 additions and 6 deletions
|
@ -151,6 +151,10 @@ namespace Ombi.Notifications.Agents
|
|||
|
||||
protected override async Task IssueResolved(NotificationOptions model, EmailNotificationSettings settings)
|
||||
{
|
||||
if (!model.Recipient.HasValue())
|
||||
{
|
||||
return;
|
||||
}
|
||||
var message = await LoadTemplate(NotificationType.IssueResolved, model, settings);
|
||||
if (message == null)
|
||||
{
|
||||
|
@ -161,10 +165,8 @@ namespace Ombi.Notifications.Agents
|
|||
message.Other.Add("PlainTextBody", plaintext);
|
||||
|
||||
// Issues resolved should be sent to the user
|
||||
message.To = model.RequestType == RequestType.Movie
|
||||
? MovieRequest.RequestedUser.Email
|
||||
: TvRequest.RequestedUser.Email;
|
||||
|
||||
message.To = model.Recipient;
|
||||
|
||||
await Send(message, settings);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue