Simple fix for requesting challenges over challenge 53

This commit is contained in:
Nathan Leniz
2015-02-08 12:39:00 -05:00
parent aac8fce2c5
commit f572e4cb77
2 changed files with 7 additions and 2 deletions

2
app.js
View File

@@ -319,7 +319,7 @@ app.post('/completed-challenge', function (req, res) {
var timestamp = req.user.challengesHash;
var points = 0;
for (var key in timestamp) {
if (timestamp[key] > 0) {
if (timestamp[key] > 0 && req.body.challengeNumber < 54) {
points += 1;
}
}