seems to attempt to write timestamp

This commit is contained in:
Michael Q Larson
2014-11-24 18:07:03 -08:00
parent 7de6ebe17f
commit 06fe5390ba
6 changed files with 133 additions and 127 deletions

3
app.js
View File

@@ -163,8 +163,9 @@ app.get('/account/unlink/:provider', userController.getOauthUnlink);
* API examples routes.
*/
app.post('/completed_challenge', function(req, res) {
req.user.challengesCompleted.push(parseInt(req.body.cn));
req.user.challengesHash[req.body.cn] = Math.round(+new Date()/1000);
req.user.save();
console.log(req.user.challengesHash);
});
/**