Fix break logic

This commit is contained in:
Leppunen 2021-03-30 13:07:10 +03:00
parent 0de5b2b933
commit 0e907469e1

View file

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