fix FCC running using router syntax

This commit is contained in:
Berkeley Martinez
2015-06-01 17:01:54 -07:00
parent 7bb11e9fbe
commit 7643f1cabe
7 changed files with 84 additions and 78 deletions
+2 -2
View File
@@ -41,12 +41,12 @@ Array.zip = function(left, right, combinerFunction) {
if (!challengeMap) {
var localChallengeMap = {};
var files = fs.readdirSync(
path.join(__dirname, '/../seed_data/challenges')
path.join(__dirname, '../../seed_data/challenges')
);
var keyCounter = 0;
files = files.map(function (file) {
return require(
path.join(__dirname, '/../seed_data/challenges/' + file)
path.join(__dirname, '../../seed_data/challenges/' + file)
);
});
files = files.sort(function (a, b) {