Explorar el Código

[misc] fix express deprecations

Co-Authored-By: Jakob Ackermann <jakob.ackermann@overleaf.com>
Ersun Warncke hace 6 años
padre
commit
98c1ffefff
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      services/track-changes/app.js

+ 1 - 1
services/track-changes/app.js

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