feat: add explicit interval time for convenience

This commit is contained in:
Ritesh Ghosh
2024-03-03 23:12:13 +05:30
parent 5bb6f098d5
commit a4b08c435c
+2 -1
View File
@@ -33,10 +33,11 @@ if (!Boolean(process?.env?.IS_VERCEL_DEPLOYMENT)) {
// don't sleep
// remove the setInterval below for personal deployments
const intervalTime = 9 * 60 * 1000; // 9mins
setInterval(() => {
console.log("HEALTHCHECK ;)", new Date().toLocaleString());
https.get("https://api-aniwatch.onrender.com/health");
}, 540000);
}, intervalTime);
}
export default app;