Skip to content

Commit

Permalink
Fixed: Actually refresh media covers
Browse files Browse the repository at this point in the history
  • Loading branch information
ta264 committed Jul 27, 2019
1 parent 61b6572 commit 814e44b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public void should_not_publish_artist_updated_event_if_metadata_not_updated()
Subject.Execute(new RefreshArtistCommand(_artist.Id));

VerifyEventNotPublished<ArtistUpdatedEvent>();
VerifyEventPublished<ArtistRefreshCompleteEvent>();
}

[Test]
Expand All @@ -125,6 +126,7 @@ public void should_publish_artist_updated_event_if_metadata_updated()
Subject.Execute(new RefreshArtistCommand(_artist.Id));

VerifyEventPublished<ArtistUpdatedEvent>();
VerifyEventPublished<ArtistRefreshCompleteEvent>();
}

[Test]
Expand Down
2 changes: 1 addition & 1 deletion src/NzbDrone.Core/Music/RefreshArtistService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ protected override void PublishEntityUpdatedEvent(Artist entity)
_eventAggregator.PublishEvent(new ArtistUpdatedEvent(entity));
}

protected virtual void PublishRefreshCompleteEvent(Artist entity)
protected override void PublishRefreshCompleteEvent(Artist entity)
{
_eventAggregator.PublishEvent(new ArtistRefreshCompleteEvent(entity));
}
Expand Down

0 comments on commit 814e44b

Please sign in to comment.