v1.18.x
barisusakli 10 years ago
parent 17ff083cc6
commit 4a0482c421

@ -30,11 +30,15 @@ function setupSecondaryDB() {
primaryDBhelpers = primaryDB.helpers;
primaryDB.init = function(callback) {
async.parallel([primaryDBinit, secondaryDB.init], callback);
async.parallel([primaryDBinit, secondaryDB.init], function(err, results) {
callback(err);
});
};
primaryDB.close = function(callback) {
async.parallel([primaryDBclose, secondaryDB.close], callback);
async.parallel([primaryDBclose, secondaryDB.close], function(err, results) {
callback(err);
});
};
primaryDB.helpers = {};

Loading…
Cancel
Save