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); });