From 327c63546749192835c02ad569ea93ec1a791f14 Mon Sep 17 00:00:00 2001 From: capitanwesler Date: Tue, 11 May 2021 14:12:06 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=80Fixed=20unused=20type=20from=20node?= =?UTF-8?q?:http?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/server.ts b/src/server.ts index fbbaec7..328c0f6 100644 --- a/src/server.ts +++ b/src/server.ts @@ -7,7 +7,6 @@ import { createConnectionMongo, } from './database/connection'; import routes from './routes'; -import { Server } from 'node:http'; const app: Application = express(); @@ -30,7 +29,7 @@ app.use(errorHandler); is going to listen in the server. ex: PORT=3000. */ -const server: Server = app.listen(process.env.PORT_LISTEN || 3000); +const server = app.listen(process.env.PORT_LISTEN || 3000); function shutdown(): void { server.close();