mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +01:00
fix findAndModify
temp fix for connect-mongo create admin after categories
This commit is contained in:
@@ -74,8 +74,10 @@
|
||||
db = _db;
|
||||
|
||||
module.client = db;
|
||||
|
||||
|
||||
if (!nconf.get('redis')) {
|
||||
// TEMP: to fix connect-mongo, see https://github.com/kcbanner/connect-mongo/issues/161
|
||||
db.openCalled = true
|
||||
module.sessionStore = new sessionStore({
|
||||
db: db
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user