connect-mongo @3 -> @4
3 removals
Words removed | 5 |
Total words | 18 |
Words removed (%) | 27.78 |
10 lines
3 additions
Words added | 4 |
Total words | 17 |
Words added (%) | 23.53 |
10 lines
const MongoStore = require('connect-mongo')(session)
const MongoStore = require('connect-mongo')
app.use(session({
app.use(session({
secret: 'shhhhhhhhhhhhhhht',
secret: 'shhhhhhhhhhhhhhht',
resave: false,
resave: false,
saveUninitialized: true,
saveUninitialized: true,
store: new MongoStore({
store: MongoStore.create({
mongooseConnection: mongoose.connection,
mongoUrl: process.env.MONGODB_URI,
})
})
}))
}))