From 025d705efa68fa64839430447e7fff88d283c43f Mon Sep 17 00:00:00 2001 From: mrrfv Date: Sun, 10 Sep 2023 12:27:58 +0200 Subject: [PATCH] Use await with functions that return a promise --- cf_list_create.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cf_list_create.js b/cf_list_create.js index 4b0ca1a..1ea61f6 100644 --- a/cf_list_create.js +++ b/cf_list_create.js @@ -112,9 +112,9 @@ fs.readFile('input.csv', 'utf8', async (err, data) => { if (DRY_RUN) return console.log('Dry run complete - no lists were created. If this was not intended, please remove the DRY_RUN environment variable and try again.'); if (FAST_MODE) { - createZeroTrustListsAtOnce(domains); + await createZeroTrustListsAtOnce(domains); return; } - createZeroTrustListsOneByOne(domains); + await createZeroTrustListsOneByOne(domains); });