Skip to content

Commit

Permalink
fix: Remove deprecated mongoose options
Browse files Browse the repository at this point in the history
  • Loading branch information
Ki-er committed Jan 28, 2025
1 parent 98188a7 commit 15b11c4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ const mongooseConnectionString = process.env.MONGOOSE;
mongoose.set('strictQuery', false);

mongoose
.connect(mongooseConnectionString, {
useNewUrlParser: true,
useUnifiedTopology: true,
})
.connect(mongooseConnectionString)
.then(() => {
console.log('Connected to db');
})
Expand Down

0 comments on commit 15b11c4

Please sign in to comment.