Skip to content

Commit

Permalink
fix cover error
Browse files Browse the repository at this point in the history
  • Loading branch information
th0mk committed Apr 16, 2024
1 parent 5227d2d commit 5525c6f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/FMBot.Bot/Services/AlbumService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,10 @@ public async Task<AlbumSearch> SearchAlbum(ResponseModel response, IUser discord
if (interactionId.HasValue)
{
PublicProperties.UsedCommandsArtists.TryAdd(interactionId.Value, albumInfo.Content.ArtistName);
PublicProperties.UsedCommandsAlbums.TryAdd(interactionId.Value, albumInfo.Content.AlbumName);
if (albumInfo.Content.AlbumName != null)
{
PublicProperties.UsedCommandsAlbums.TryAdd(interactionId.Value, albumInfo.Content.AlbumName);
}
}

return new AlbumSearch(albumInfo.Content, response);
Expand Down

0 comments on commit 5525c6f

Please sign in to comment.