mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
closes #3208
This commit is contained in:
@@ -30,11 +30,15 @@ function setupSecondaryDB() {
|
|||||||
primaryDBhelpers = primaryDB.helpers;
|
primaryDBhelpers = primaryDB.helpers;
|
||||||
|
|
||||||
primaryDB.init = function(callback) {
|
primaryDB.init = function(callback) {
|
||||||
async.parallel([primaryDBinit, secondaryDB.init], callback);
|
async.parallel([primaryDBinit, secondaryDB.init], function(err, results) {
|
||||||
|
callback(err);
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
primaryDB.close = function(callback) {
|
primaryDB.close = function(callback) {
|
||||||
async.parallel([primaryDBclose, secondaryDB.close], callback);
|
async.parallel([primaryDBclose, secondaryDB.close], function(err, results) {
|
||||||
|
callback(err);
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
primaryDB.helpers = {};
|
primaryDB.helpers = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user