[misc] fix express deprecations

Co-Authored-By: Jakob Ackermann <jakob.ackermann@overleaf.com>
This commit is contained in:
Ersun Warncke 2020-03-18 11:35:47 -04:00 committed by Jakob Ackermann
parent 79f65ded76
commit 98c1ffefff

View file

@ -109,7 +109,7 @@ app.get('/health_check', HttpController.healthCheck)
app.use(function(error, req, res, next) {
logger.error({ err: error, req }, 'an internal error occured')
return res.send(500)
return res.sendStatus(500)
})
const port =