Skip to content

Commit

Permalink
Merge pull request #17 from VBetsun/fix-mongoose-deprecation-warning
Browse files Browse the repository at this point in the history
fix: mongoose deprecation warning `findOneAndUpdate()` and `findOneAndDelete()` without the `useFindAndModify` option set to false
  • Loading branch information
niftylettuce authored Jan 16, 2021
2 parents 0db0e85 + c83c767 commit 8c92dd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ function sharedConfig(prefix) {
? parseInt(process.env[`${prefix}_MONGO_RECONNECT_INTERVAL`], 10)
: 1000,
useNewUrlParser: true,
useUnifiedTopology: true
useUnifiedTopology: true,
useFindAndModify: false
}
}
},
Expand Down

0 comments on commit 8c92dd4

Please sign in to comment.