fixed automated setup bug

v1.18.x
psychobunny 11 years ago
parent 8a1f6eb43e
commit 8496bdcff6

@ -150,7 +150,10 @@ function setupConfig(next) {
} else { } else {
// Use provided values, fall back to defaults // Use provided values, fall back to defaults
var config = {}, var config = {},
question, x, numQ, allQuestions = questions.main.concat(questions.redis).concat(questions.mongo.concat(questions.level)); redisQuestions = require('./database/redis').questions,
mongoQuestions = require('./database/mongo').questions,
levelQuestions = require('./database/level').questions,
question, x, numQ, allQuestions = questions.main.concat(redisQuestions).concat(mongoQuestions.concat(levelQuestions));
for(x=0,numQ=allQuestions.length;x<numQ;x++) { for(x=0,numQ=allQuestions.length;x<numQ;x++) {
question = allQuestions[x]; question = allQuestions[x];

Loading…
Cancel
Save