[misc] fix express deprecations

Co-Authored-By: Jakob Ackermann <jakob.ackermann@overleaf.com>
This commit is contained in:
Ersun Warncke 2020-03-18 10:15:04 -04:00 committed by Jakob Ackermann
parent eb909a4a21
commit 686f0f0102

View file

@ -161,7 +161,7 @@ module.exports = MessageHttpController = {
if (error != null) {
return next(error)
}
return res.status(204).send()
return res.sendStatus(204)
})
})
},