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}`;
|
const listName = `CGPS List - Chunk ${listNumber}`;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const {
|
await createZeroTrustList(listName, chunk);
|
||||||
result: { id },
|
await sleep();
|
||||||
} = await createZeroTrustList(listName, chunk);
|
|
||||||
|
|
||||||
totalListNumber--;
|
totalListNumber--;
|
||||||
listNumber++;
|
listNumber++;
|
||||||
console.log(
|
console.log(`Created ${listName} list - ${totalListNumber} left`);
|
||||||
`Created ${listName} with ID ${id} - ${totalListNumber} left`
|
|
||||||
);
|
|
||||||
await sleep();
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(`Could not create ${listName} - ${err.toString()}`);
|
console.error(`Could not create ${listName} - ${err.toString()}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user