From 31b696daaddc70713276525631397688a30fc870 Mon Sep 17 00:00:00 2001 From: Arogya Bichpuria Date: Sun, 14 Jul 2024 18:08:05 +0530 Subject: [PATCH] fixed type issue --- src/app.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index d6794f8..9f7ff6c 100644 --- a/src/app.ts +++ b/src/app.ts @@ -3,8 +3,9 @@ import buildServer from "./server"; const server = buildServer(); async function main() { + const port = process.env.APP_PORT as string; try { - await server.listen({ port: process.env.APP_PORT }, (err, address) => { + await server.listen({ port: Number(port) }, (err, address) => { if (err) { console.log("error exectued"); console.error(err);