Skip to content

Commit

Permalink
connect-mongo migrate to v4.
Browse files Browse the repository at this point in the history
  • Loading branch information
OLonsdale committed Mar 27, 2022
1 parent 095e164 commit 19ade3d
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.MONGO_URI,}),
})
)

Expand Down

0 comments on commit 19ade3d

Please sign in to comment.