mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
use new way to send status in express for healthcheck controlller
This commit is contained in:
@@ -64,7 +64,7 @@ Reporter = (res) ->
|
||||
res.contentType("application/json")
|
||||
if failures.length > 0
|
||||
logger.err failures:failures, "health check failed"
|
||||
res.send 500, JSON.stringify(results, null, 2)
|
||||
res.status(500).send(JSON.stringify(results, null, 2))
|
||||
else
|
||||
res.send 200, JSON.stringify(results, null, 2)
|
||||
res.status(200).send(JSON.stringify(results, null, 2))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user