diff options
| author | Ritesh Ghosh <[email protected]> | 2023-08-19 23:51:43 +0530 |
|---|---|---|
| committer | Ritesh Ghosh <[email protected]> | 2023-08-19 23:51:43 +0530 |
| commit | 2b22cc641e30633908cddd625b0695047602e68c (patch) | |
| tree | d36f9f949e4e8ce0437fc5029ffc690083f9a9fa /src | |
| parent | 2382a8977775c44235c1273a0b8e9ba11769b326 (diff) | |
| download | aniwatch-api-2b22cc641e30633908cddd625b0695047602e68c.tar.xz aniwatch-api-2b22cc641e30633908cddd625b0695047602e68c.zip | |
fix: added `healthcheck` awake
Diffstat (limited to 'src')
| -rw-r--r-- | src/server.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server.ts b/src/server.ts index 032f6fc..b5c6e65 100644 --- a/src/server.ts +++ b/src/server.ts @@ -2,7 +2,7 @@ import morgan from "morgan"; import express from "express"; import { config } from "dotenv"; -import http from "http"; +import https from "https"; import { resolve } from "path"; import { ratelimit } from "./config/ratelimit"; import errorHandler from "./config/errorHandler"; @@ -31,5 +31,5 @@ app.listen(PORT, () => { // don't sleep setInterval(() => { console.log("HEALTHCHECK ;)", new Date().toLocaleString()); - http.get("https://api-aniwatch.onrender.com/health"); + https.get("https://api-aniwatch.onrender.com/health"); }, 540000); |
