mirror of
https://github.com/Nezumi-2711/cloudflare-gateway-pihole-scripts.git
synced 2026-09-22 05:31:50 +00:00
Use await with functions that return a promise
This commit is contained in:
+2
-2
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user