From 21eb6c8b0f1f59335a8726dd3a61a0e9fc2ff78d Mon Sep 17 00:00:00 2001 From: Sai Teja Madha Date: Sat, 15 Jul 2023 00:12:58 -0700 Subject: [PATCH] fix mongoose deprecation warning --- src/database/mongoose.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/database/mongoose.js b/src/database/mongoose.js index de91a45a2..9b9160db0 100644 --- a/src/database/mongoose.js +++ b/src/database/mongoose.js @@ -8,10 +8,7 @@ module.exports = { log(`Connecting to MongoDb...`); try { - mongoose.set("strictQuery", true); - await mongoose.connect(process.env.MONGO_CONNECTION, { - keepAlive: true, - }); + await mongoose.connect(process.env.MONGO_CONNECTION); success("Mongoose: Database connection established");