Fixed the issue where notifications were not sendind unless we restarted #1732

pull/1805/head
tidusjar 7 years ago
parent 8989b6b72b
commit de334f5130

@ -23,6 +23,8 @@ namespace Ombi.Notifications.Interfaces
MovieRepository = movie;
TvRepository = tv;
CustomizationSettings = customization;
Settings.ClearCache();
CustomizationSettings.ClearCache();
}
protected ISettingsService<T> Settings { get; }
@ -46,6 +48,7 @@ namespace Ombi.Notifications.Interfaces
public async Task NotifyAsync(NotificationOptions model, Settings.Settings.Models.Settings settings)
{
Settings.ClearCache();
if (settings == null) await NotifyAsync(model);
var notificationSettings = (T)settings;

Loading…
Cancel
Save