Skip to content

Commit

Permalink
Merge pull request bradtraversy#22 from adilshaik/master
Browse files Browse the repository at this point in the history
Update mongo-connect
  • Loading branch information
bradtraversy committed May 28, 2021
2 parents 1381a27 + f5fd013 commit f1a45ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const exphbs = require('express-handlebars')
const methodOverride = require('method-override')
const passport = require('passport')
const session = require('express-session')
const MongoStore = require('connect-mongo')(session)
const MongoStore = require('connect-mongo')
const connectDB = require('./config/db')

// Load config
Expand Down Expand Up @@ -73,7 +73,7 @@ app.use(
secret: 'keyboard cat',
resave: false,
saveUninitialized: false,
store: new MongoStore({ mongooseConnection: mongoose.connection }),
store: MongoStore.create({ mongoUrl: process.env.mongoURI }),
})
)

Expand Down

0 comments on commit f1a45ca

Please sign in to comment.