From 0e907469e14d2b932a7b3f1e4b7dde6e49ad9c23 Mon Sep 17 00:00:00 2001 From: Leppunen Date: Tue, 30 Mar 2021 13:07:10 +0300 Subject: [PATCH] Fix break logic --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 2cfa8d7..d7c9762 100644 --- a/index.js +++ b/index.js @@ -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; }