Skip to content

Commit

Permalink
fix mongoose deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
saiteja-madha committed Jan 30, 2023
1 parent ccd66f4 commit e82e1a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/database/mongoose.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const mongoose = require("mongoose");
const { log, success, error } = require("../helpers/Logger");

mongoose.set("strictQuery", true);

module.exports = {
async initializeMongoose() {
log(`Connecting to MongoDb...`);
Expand Down

0 comments on commit e82e1a5

Please sign in to comment.