Use res.send, not next
This commit is contained in:
@@ -8,7 +8,7 @@ module.exports = AnalyticsController =
|
|||||||
if error?
|
if error?
|
||||||
if error instanceof Errors.ServiceNotConfiguredError
|
if error instanceof Errors.ServiceNotConfiguredError
|
||||||
# ignore, no-op
|
# ignore, no-op
|
||||||
return next(204)
|
return res.send(204)
|
||||||
else
|
else
|
||||||
return next(error)
|
return next(error)
|
||||||
res.send 204
|
res.send 204
|
||||||
|
|||||||
Reference in New Issue
Block a user