Add loop logic as well
This commit is contained in:
parent
daceb05d52
commit
952aaced2b
2
index.js
2
index.js
|
|
@ -47,9 +47,11 @@ const main = async () => {
|
||||||
console.log(`Successfully deleted forward ${key}`);
|
console.log(`Successfully deleted forward ${key}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(`Unexpected error: ${err}`);
|
console.error(`Unexpected error: ${err}`);
|
||||||
}
|
}
|
||||||
|
setTimeout(main, 3000); // Run every 60 seconds
|
||||||
};
|
};
|
||||||
|
|
||||||
const startup = async () => {
|
const startup = async () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue