seems to attempt to write timestamp
This commit is contained in:
3
app.js
3
app.js
@@ -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);
|
||||
});
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user