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