mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
return 400 if NO_USER_FOUND unecessary since handled in auth
This commit is contained in:
parent
f5d80d0829
commit
65f819046d
1 changed files with 0 additions and 1 deletions
|
|
@ -110,7 +110,6 @@ api.scoreTask = (req, res, next) ->
|
|||
Get all tasks
|
||||
###
|
||||
api.getTasks = (req, res, next) ->
|
||||
return res.json 400, NO_USER_FOUND if _.isEmpty(req.habit.userObj)
|
||||
types =
|
||||
if /^(habit|todo|daily|reward)$/.test(req.query.type) then [req.query.type]
|
||||
else ['habit','todo','daily','reward']
|
||||
|
|
|
|||
Loading…
Reference in a new issue