Fixed: Update deleted movie health after refreshing movies

Fixes #4694

Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
pull/2/head
Qstick 4 years ago
parent e6c92c05ec
commit 62d2c8e1f3

@ -8,6 +8,7 @@ namespace NzbDrone.Core.HealthCheck.Checks
{ {
[CheckOn(typeof(MovieUpdatedEvent))] [CheckOn(typeof(MovieUpdatedEvent))]
[CheckOn(typeof(MoviesDeletedEvent), CheckOnCondition.FailedOnly)] [CheckOn(typeof(MoviesDeletedEvent), CheckOnCondition.FailedOnly)]
[CheckOn(typeof(MovieRefreshCompleteEvent))]
public class RemovedMovieCheck : HealthCheckBase, ICheckOnCondition<MovieUpdatedEvent>, ICheckOnCondition<MoviesDeletedEvent> public class RemovedMovieCheck : HealthCheckBase, ICheckOnCondition<MovieUpdatedEvent>, ICheckOnCondition<MoviesDeletedEvent>
{ {
private readonly IMovieService _movieService; private readonly IMovieService _movieService;

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

@ -239,6 +239,8 @@ namespace NzbDrone.Core.Movies
} }
} }
} }
_eventAggregator.PublishEvent(new MovieRefreshCompleteEvent());
} }
} }
} }

Loading…
Cancel
Save