mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 10:32:19 -05:00
use new way to send status in express for healthcheck controlller
This commit is contained in:
parent
411b5324df
commit
6776aa61f1
1 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ Reporter = (res) ->
|
||||||
res.contentType("application/json")
|
res.contentType("application/json")
|
||||||
if failures.length > 0
|
if failures.length > 0
|
||||||
logger.err failures:failures, "health check failed"
|
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
|
else
|
||||||
res.send 200, JSON.stringify(results, null, 2)
|
res.status(200).send(JSON.stringify(results, null, 2))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue