mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
cleanup
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user