return 400 if NO_USER_FOUND unecessary since handled in auth

This commit is contained in:
Tyler Renelle 2013-08-12 20:20:07 -04:00
parent f5d80d0829
commit 65f819046d

View file

@ -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']