Skip to content

Commit

Permalink
fixed the mongoose error
Browse files Browse the repository at this point in the history
  • Loading branch information
Limebee committed Feb 2, 2023
1 parent 7484e34 commit 3cdc53a
Show file tree
Hide file tree
Showing 4 changed files with 3,559 additions and 3,043 deletions.
5 changes: 1 addition & 4 deletions config/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ const mongoose = require('mongoose')
const connectDB = async () => {
try {
const conn = await mongoose.connect(process.env.DB_STRING, {
useNewUrlParser: true,
useUnifiedTopology: true,
useFindAndModify: false,
useCreateIndex: true

})

console.log(`MongoDB Connected: ${conn.connection.host}`)
Expand Down
Loading

0 comments on commit 3cdc53a

Please sign in to comment.