Skip to content

Commit

Permalink
fixed type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
arogya01 committed Jul 14, 2024
1 parent ec802fe commit 31b696d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 31b696d

Please sign in to comment.