From 6776aa61f1e9d4c109f724a76629591bff07168d Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Tue, 15 Nov 2016 11:04:13 +0000 Subject: [PATCH] use new way to send status in express for healthcheck controlller --- .../coffee/Features/HealthCheck/HealthCheckController.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/app/coffee/Features/HealthCheck/HealthCheckController.coffee b/services/web/app/coffee/Features/HealthCheck/HealthCheckController.coffee index 9aec67e14e..51acdbd2f0 100644 --- a/services/web/app/coffee/Features/HealthCheck/HealthCheckController.coffee +++ b/services/web/app/coffee/Features/HealthCheck/HealthCheckController.coffee @@ -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))