Skip to content

Commit

Permalink
fix mongoose deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Sai Teja Madha committed Jul 15, 2023
1 parent 376edb3 commit 21eb6c8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/database/mongoose.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 21eb6c8

Please sign in to comment.