Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwellmckinnon committed Jun 1, 2021
1 parent f1a45ca commit de285f0
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')
const MongoStore = require('connect-mongo')(session)
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: MongoStore.create({ mongoUrl: process.env.mongoURI }),
store: new MongoStore({ mongooseConnection: mongoose.connection }),
})
)

Expand Down

0 comments on commit de285f0

Please sign in to comment.