Skip to content

Commit

Permalink
Removed a commented line in order to close the connection with the mo…
Browse files Browse the repository at this point in the history
…ngodb
  • Loading branch information
Mister-Mario committed Mar 17, 2024
1 parent c718a65 commit d61eb4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion questionservice/question-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const server = app.listen(port, () => {
// Listen for the 'close' event on the Express.js server
server.on('close', () => {
// Close the Mongoose connection
//mongoose.connection.close();
mongoose.connection.close();
});

module.exports = server

0 comments on commit d61eb4b

Please sign in to comment.