mirror of
https://github.com/Nezumi-2711/cloudflare-gateway-pihole-scripts.git
synced 2026-09-22 13:38:37 +00:00
removed list ID output
This commit is contained in:
+3
-8
@@ -46,16 +46,11 @@ const createZeroTrustListsOneByOne = async (items) => {
|
||||
const listName = `CGPS List - Chunk ${listNumber}`;
|
||||
|
||||
try {
|
||||
const {
|
||||
result: { id },
|
||||
} = await createZeroTrustList(listName, chunk);
|
||||
|
||||
await createZeroTrustList(listName, chunk);
|
||||
await sleep();
|
||||
totalListNumber--;
|
||||
listNumber++;
|
||||
console.log(
|
||||
`Created ${listName} with ID ${id} - ${totalListNumber} left`
|
||||
);
|
||||
await sleep();
|
||||
console.log(`Created ${listName} list - ${totalListNumber} left`);
|
||||
} catch (err) {
|
||||
console.error(`Could not create ${listName} - ${err.toString()}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user