Skip to content

Commit

Permalink
fix: return connection promise
Browse files Browse the repository at this point in the history
  • Loading branch information
zeim839 committed May 1, 2024
1 parent 831b36a commit fb4e5cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ process.on('SIGINT', (error, data) => {
})

exports.connect = () => {
mongoose.connect(url, { useNewUrlParser: true, useUnifiedTopology: true })
return mongoose.connect(url, { useNewUrlParser: true, useUnifiedTopology: true })
}

exports.disconnect = () => {
Expand Down

0 comments on commit fb4e5cd

Please sign in to comment.