api res.json error in batch

This commit is contained in:
Tyler Renelle 2013-08-11 10:06:10 -04:00
parent eb28ae3dd2
commit 23f3154764

View file

@ -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"