Skip to content

Commit

Permalink
fix: start from the beginning and create batches towards the end
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyguerra committed Dec 10, 2023
1 parent 521123a commit 89914ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DiscordAdapter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class DiscordAdapter extends Adapter {
return a
})
while(files.length > 0) {
const batch = files.splice(-files.length, DISCORD_ATTACHMENT_LIMIT)
const batch = files.splice(0, DISCORD_ATTACHMENT_LIMIT)
tasks.push(delegate({files: batch}))
}
} else {
Expand Down

0 comments on commit 89914ed

Please sign in to comment.