Unverified Commit cf916f99 authored by Ben Botvinick's avatar Ben Botvinick Committed by GitHub

Add useCreateIndex to mongoose connection options (#21145)

To prevent `DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead.`
parent dd2218ad
......@@ -11,6 +11,7 @@ async function dbConnect() {
useNewUrlParser: true,
useUnifiedTopology: true,
useFindAndModify: false,
useCreateIndex: true,
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment