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