From 365b7e37a8d4c025546ef9e88ccd635970c8215c Mon Sep 17 00:00:00 2001 From: Caleb Dye <48802887+calebdye@users.noreply.github.com> Date: Mon, 23 Jan 2023 11:41:25 -0700 Subject: [PATCH] Update database.js Removed as they are no longer needed, and the app will not run with them there currently. The remaining two are also probably not needed, but the app will run with them present. useFindAndModify: false, useCreateIndex: true --- config/database.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/database.js b/config/database.js index 4aac3a233..72457b3f1 100644 --- a/config/database.js +++ b/config/database.js @@ -5,8 +5,8 @@ const connectDB = async () => { const conn = await mongoose.connect(process.env.DB_STRING, { useNewUrlParser: true, useUnifiedTopology: true, - useFindAndModify: false, - useCreateIndex: true + //useFindAndModify: false, + //useCreateIndex: true }) console.log(`MongoDB Connected: ${conn.connection.host}`)