This commit is contained in:
Matteo Pagliazzi
2015-12-02 11:30:58 +01:00
parent 427c805ea5
commit 62708d4365
3 changed files with 3 additions and 5 deletions

View File

@@ -196,8 +196,6 @@ api.scoreTask = {
}).exec()
.then((task) => {
if (!task) throw new NotFound(res.t('taskNotFound'));
let delta = user.ops.score({params:{id:task.id, direction:direction}, language: req.language});
})
.then(() => res.respond(200, {})) // TODO what to return
.catch(next);