mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
[misc] fix express deprecations
This commit is contained in:
parent
51fb2170b2
commit
562375d351
2 changed files with 3 additions and 3 deletions
|
@ -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')
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue