mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
add useUnifiedTopology to overcome warning
This commit is contained in:
@@ -12,6 +12,7 @@ function connect() {
|
||||
|
||||
connectedPromise = mongoose.connect(process.env.MONGO_URI, {
|
||||
useNewUrlParser: true,
|
||||
useUnifiedTopology: true,
|
||||
})
|
||||
|
||||
return connectedPromise
|
||||
|
||||
Reference in New Issue
Block a user