Fix break logic
This commit is contained in:
parent
0de5b2b933
commit
0e907469e1
1 changed files with 1 additions and 2 deletions
3
index.js
3
index.js
|
@ -80,8 +80,7 @@ const runList = async (listData, listID, channel) => {
|
||||||
|
|
||||||
await Promise.allSettled(promises);
|
await Promise.allSettled(promises);
|
||||||
|
|
||||||
if (i === chunkCount) {
|
if (i +1 === chunkCount) {
|
||||||
console.log('Reached the end of ban chunks. Breaking loop.')
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue