This commit is contained in:
Sugui 2024-04-15 19:23:35 +02:00
parent 95c93012be
commit 21c312dcda
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ const server = app.listen(PORT, () =>
console.log(`Express server listening on port ${PORT}`)
);
process.on("SIGTERM", (code) => {
process.on("SIGTERM", () => {
server.close(() => {
console.log('Server closed.');
process.exit(0);