Open dothanhlam opened 9 years ago
Since the application could not start due to MongoStore updates, in 'express.js', please change the connection as below :
From app.use(session({ secret: config.sessionSecret, store: new MongoStore({ db: db.connection.db, collection: config.sessionCollection }) }));
To app.use(session({ secret: config.sessionSecret, store: new MongoStore({ mongooseConnection: db.connection, collection: config.sessionCollection }) }));
same issue
Since the application could not start due to MongoStore updates, in 'express.js', please change the connection as below :
From app.use(session({ secret: config.sessionSecret, store: new MongoStore({ db: db.connection.db, collection: config.sessionCollection }) }));
To app.use(session({ secret: config.sessionSecret, store: new MongoStore({ mongooseConnection: db.connection, collection: config.sessionCollection }) }));