fixes for dual database; moved dependency definitions into the database object

This commit is contained in:
psychobunny
2014-04-15 12:40:30 -04:00
parent 79d5142693
commit 549f87132d
2 changed files with 20 additions and 17 deletions

View File

@@ -89,7 +89,9 @@ function getSecondaryDatabaseModules(config, next) {
});
}
module.exports = function(err, config, allowedDBs, callback) {
module.exports = function(err, config, databases, callback) {
var allowedDBs = Object.keys(databases);
allowedDBs.forEach(function(db) {
questions[db] = require('./../src/database/' + db).questions;
});