💀Fixed unused type from node:http

pull/49/head
capitanwesler 4 years ago
parent 116e89e6c5
commit 327c635467

@ -7,7 +7,6 @@ import {
createConnectionMongo, createConnectionMongo,
} from './database/connection'; } from './database/connection';
import routes from './routes'; import routes from './routes';
import { Server } from 'node:http';
const app: Application = express(); const app: Application = express();
@ -30,7 +29,7 @@ app.use(errorHandler);
is going to listen in the server. is going to listen in the server.
ex: PORT=3000. 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 { function shutdown(): void {
server.close(); server.close();

Loading…
Cancel
Save