Skip to content

Commit

Permalink
fix: Moving from history to queue not using the song count.
Browse files Browse the repository at this point in the history
  • Loading branch information
vxern committed Aug 24, 2024
1 parent 15b6796 commit 7e94908
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "logos",
"description": "A multi-purpose community bot built to cater to language-learning communities on Discord.",
"license": "Apache-2.0",
"version": "4.21.0",
"version": "4.21.1",
"type": "module",
"keywords": [
"discord",
Expand Down
2 changes: 1 addition & 1 deletion source/library/services/music.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ class ListingManager extends EventEmitter {
moveFromHistoryToQueue({ count }: { count: number }): void {
count = Math.min(Math.max(count, 0), this.history.count);

for (const _ of new Array().keys()) {
for (const _ of new Array(count).keys()) {
this.queue.addOld(this.history.removeNewest());
}

Expand Down

0 comments on commit 7e94908

Please sign in to comment.