Skip to content

Commit

Permalink
ircbot: use new FavoritesOfDatabase
Browse files Browse the repository at this point in the history
  • Loading branch information
Wessie committed May 24, 2024
1 parent 1061bc8 commit 10901f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ircbot/commands_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,7 @@ func RandomTrackRequest(e Event) error {
nickname = nick
}

// TODO(wessie): this limit is artificial, but no one should hit 100k faves
songs, _, err = e.Storage.Song(e.Ctx).FavoritesOf(nickname, 100000, 0)
songs, err = e.Storage.Song(e.Ctx).FavoritesOfDatabase(nickname)
if err != nil {
return errors.E(op, err)
}
Expand Down

0 comments on commit 10901f0

Please sign in to comment.