add useCreateIndex to mongo connection

This commit is contained in:
Thomas Ruoff
2020-11-02 22:04:26 +01:00
parent 92324fc45f
commit c52e3bf921

View File

@@ -13,6 +13,7 @@ function connect() {
}
connectedPromise = mongoose.connect(process.env.MONGO_URI, {
useCreateIndex: true,
useNewUrlParser: true,
useUnifiedTopology: true,
})