Fix banchunks getting skipped

This commit is contained in:
Leppunen 2021-03-30 12:58:09 +03:00
parent fb804156f4
commit 0de5b2b933

View file

@ -80,9 +80,8 @@ const runList = async (listData, listID, channel) => {
await Promise.allSettled(promises);
banChunks.shift();
if (banChunks.length === 0) {
if (i === chunkCount) {
console.log('Reached the end of ban chunks. Breaking loop.')
break;
}