mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
Merge remote-tracking branch 'origin/0.5.1' into cluster
This commit is contained in:
@@ -108,6 +108,12 @@
|
||||
}
|
||||
});
|
||||
|
||||
db.collection('search').ensureIndex({key: 1, id: 1}, {background: true}, function(err) {
|
||||
if(err) {
|
||||
winston.error('Error creating index ' + err.message);
|
||||
}
|
||||
});
|
||||
|
||||
if(typeof callback === 'function') {
|
||||
callback();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user