Fixed: Actually refresh media covers

This commit is contained in:
ta264 2019-07-25 21:43:02 +01:00
commit 814e44b7e4
2 changed files with 3 additions and 1 deletions

View file

@ -106,6 +106,7 @@ namespace NzbDrone.Core.Test.MusicTests
Subject.Execute(new RefreshArtistCommand(_artist.Id)); Subject.Execute(new RefreshArtistCommand(_artist.Id));
VerifyEventNotPublished<ArtistUpdatedEvent>(); VerifyEventNotPublished<ArtistUpdatedEvent>();
VerifyEventPublished<ArtistRefreshCompleteEvent>();
} }
[Test] [Test]
@ -125,6 +126,7 @@ namespace NzbDrone.Core.Test.MusicTests
Subject.Execute(new RefreshArtistCommand(_artist.Id)); Subject.Execute(new RefreshArtistCommand(_artist.Id));
VerifyEventPublished<ArtistUpdatedEvent>(); VerifyEventPublished<ArtistUpdatedEvent>();
VerifyEventPublished<ArtistRefreshCompleteEvent>();
} }
[Test] [Test]

View file

@ -245,7 +245,7 @@ namespace NzbDrone.Core.Music
_eventAggregator.PublishEvent(new ArtistUpdatedEvent(entity)); _eventAggregator.PublishEvent(new ArtistUpdatedEvent(entity));
} }
protected virtual void PublishRefreshCompleteEvent(Artist entity) protected override void PublishRefreshCompleteEvent(Artist entity)
{ {
_eventAggregator.PublishEvent(new ArtistRefreshCompleteEvent(entity)); _eventAggregator.PublishEvent(new ArtistRefreshCompleteEvent(entity));
} }