Fixed: Update deleted series health after refreshing series

pull/3464/head
Mark McDowall 5 years ago
parent 186cb02748
commit 415bbf5b3b

@ -1,5 +1,4 @@
using System.Linq;
using System.Text;
using NLog;
using NzbDrone.Common.Extensions;
using NzbDrone.Core.Tv;
@ -9,6 +8,7 @@ namespace NzbDrone.Core.HealthCheck.Checks
{
[CheckOn(typeof(SeriesUpdatedEvent))]
[CheckOn(typeof(SeriesDeletedEvent), CheckOnCondition.FailedOnly)]
[CheckOn(typeof(SeriesRefreshCompleteEvent))]
public class RemovedSeriesCheck : HealthCheckBase, ICheckOnCondition<SeriesUpdatedEvent>, ICheckOnCondition<SeriesDeletedEvent>
{
private readonly ISeriesService _seriesService;

@ -0,0 +1,8 @@
using NzbDrone.Common.Messaging;
namespace NzbDrone.Core.Tv.Events
{
public class SeriesRefreshCompleteEvent : IEvent
{
}
}

@ -249,6 +249,8 @@ namespace NzbDrone.Core.Tv
}
}
}
_eventAggregator.PublishEvent(new SeriesRefreshCompleteEvent());
}
}
}

Loading…
Cancel
Save