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

This commit is contained in:
tidusjar 2017-12-06 21:59:04 +00:00
parent 8989b6b72b
commit de334f5130

View file

@ -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;