[misc] fix express deprecations

This commit is contained in:
Jakob Ackermann 2020-07-22 09:45:14 +01:00
parent 51fb2170b2
commit 562375d351
2 changed files with 3 additions and 3 deletions

View file

@ -68,7 +68,7 @@ app.get('/', (req, res) => res.send('real-time-sharelatex is alive'))
app.get('/status', function (req, res) {
if (Settings.shutDownInProgress) {
res.send(503) // Service unavailable
res.sendStatus(503) // Service unavailable
} else {
res.send('real-time-sharelatex is alive')
}

View file

@ -23,7 +23,7 @@ module.exports = {
req.body
)
}
res.send(204)
res.sendStatus(204)
},
startDrain(req, res) {
@ -32,7 +32,7 @@ module.exports = {
rate = parseFloat(rate) || 0
logger.log({ rate }, 'setting client drain rate')
DrainManager.startDrain(io, rate)
res.send(204)
res.sendStatus(204)
},
disconnectClient(req, res, next) {