Use res.send, not next

This commit is contained in:
Shane Kilkelly 2017-03-21 11:09:39 +00:00
parent 1ed1eaaa05
commit 1663f2a8eb

View file

@ -8,7 +8,7 @@ module.exports = AnalyticsController =
if error?
if error instanceof Errors.ServiceNotConfiguredError
# ignore, no-op
return next(204)
return res.send(204)
else
return next(error)
res.send 204