diff --git a/utils/database.js b/utils/database.js index 58c0ce3..add5f8d 100644 --- a/utils/database.js +++ b/utils/database.js @@ -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 = () => {