mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
api res.json error in batch
This commit is contained in:
parent
eb28ae3dd2
commit
23f3154764
1 changed files with 1 additions and 1 deletions
|
|
@ -382,6 +382,6 @@ api.batchUpdate = (req, res, next) ->
|
|||
|
||||
# call all the operations, then return the user object to the requester
|
||||
async.series actions, (err) ->
|
||||
return next(err) if err
|
||||
return res.send 500, {err} if err
|
||||
res.json 200, helpers.derbyUserToAPI(user)
|
||||
console.log "Reply sent"
|
||||
Loading…
Reference in a new issue