Merge pull request #171 from overleaf/jpa-fix-express-deprecations

[misc] fix express deprecations
This commit is contained in:
Jakob Ackermann 2020-07-22 11:55:01 +02:00 committed by GitHub
commit 68a5ec7c73
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) {