aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRitesh Ghosh <[email protected]>2024-03-03 23:12:13 +0530
committerRitesh Ghosh <[email protected]>2024-03-03 23:12:13 +0530
commita4b08c435c0ed62c57a1a6a985e3eed25bb82c92 (patch)
tree2423d1672b3731198ff896072654a89b06da30ad /src
parent5bb6f098d525ba3542159476f0f35f82703e2c8a (diff)
downloadaniwatch-api-a4b08c435c0ed62c57a1a6a985e3eed25bb82c92.tar.xz
aniwatch-api-a4b08c435c0ed62c57a1a6a985e3eed25bb82c92.zip
feat: add explicit interval time for convenience
Diffstat (limited to 'src')
-rw-r--r--src/server.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server.ts b/src/server.ts
index 31f53ab..ce9f049 100644
--- a/src/server.ts
+++ b/src/server.ts
@@ -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;