fix findAndModify

temp fix for connect-mongo
create admin after categories
This commit is contained in:
Barış Soner Uşaklı
2015-03-03 16:16:32 -05:00
parent e421a2c7cd
commit 6bd3c54a03
5 changed files with 8 additions and 6 deletions

View File

@@ -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
});