mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
fixes for dual database; moved dependency definitions into the database object
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user