continue work on challengeshash

This commit is contained in:
Michael Q Larson
2014-12-04 12:06:17 -08:00
parent 5c54fddaec
commit 07ba7e4fcb
5 changed files with 10 additions and 10 deletions

View File

@@ -6,7 +6,6 @@
exports.index = function(req, res) {
if (req.user) {
if (req.user.challengesCompleted.length > 0) {
Object.values(req.user.challengesHash);
nextChallenge = Math.max.apply(Math, req.user.challengesHash) + 1;
res.redirect("challenges/" + nextChallenge);
} else {