|
|
@ -151,6 +151,10 @@ namespace Ombi.Notifications.Agents
|
|
|
|
|
|
|
|
|
|
|
|
protected override async Task IssueResolved(NotificationOptions model, EmailNotificationSettings settings)
|
|
|
|
protected override async Task IssueResolved(NotificationOptions model, EmailNotificationSettings settings)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!model.Recipient.HasValue())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
var message = await LoadTemplate(NotificationType.IssueResolved, model, settings);
|
|
|
|
var message = await LoadTemplate(NotificationType.IssueResolved, model, settings);
|
|
|
|
if (message == null)
|
|
|
|
if (message == null)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -161,9 +165,7 @@ namespace Ombi.Notifications.Agents
|
|
|
|
message.Other.Add("PlainTextBody", plaintext);
|
|
|
|
message.Other.Add("PlainTextBody", plaintext);
|
|
|
|
|
|
|
|
|
|
|
|
// Issues resolved should be sent to the user
|
|
|
|
// Issues resolved should be sent to the user
|
|
|
|
message.To = model.RequestType == RequestType.Movie
|
|
|
|
message.To = model.Recipient;
|
|
|
|
? MovieRequest.RequestedUser.Email
|
|
|
|
|
|
|
|
: TvRequest.RequestedUser.Email;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await Send(message, settings);
|
|
|
|
await Send(message, settings);
|
|
|
|
}
|
|
|
|
}
|
|
|
|