Add new help rooms and logic

This commit is contained in:
Berkeley Martinez
2016-01-15 00:55:08 -08:00
parent 918ea56e33
commit 47c930d7f4
13 changed files with 33 additions and 45 deletions

View File

@@ -164,6 +164,7 @@ function getRenderData$(user, challenge$, origChallengeName, solution) {
});
}
console.log(challenge.helpRoom);
// save user does nothing if user does not exist
return Observable.just({
data: {
@@ -485,6 +486,7 @@ module.exports = function(app) {
}
var view = challengeView[data.challengeType];
res.cookie('currentChallengeId', data.id);
console.log(data.helpRoom);
res.render(view, data);
},
next,