From ca3e5da1faa638e6b3cdfe3480b137ad32be8f99 Mon Sep 17 00:00:00 2001 From: ahonn Date: Wed, 25 Sep 2024 13:54:38 +1000 Subject: [PATCH] fix: healthcheck always return 200 response status code --- backend/src/filters/all-exceptions.filter.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/filters/all-exceptions.filter.ts b/backend/src/filters/all-exceptions.filter.ts index 4e394db9..5f831d39 100644 --- a/backend/src/filters/all-exceptions.filter.ts +++ b/backend/src/filters/all-exceptions.filter.ts @@ -15,8 +15,7 @@ export class AllExceptionsFilter extends SentryGlobalGraphQLFilter { const request = ctx.getRequest(); if (SKIP_REQUEST_URLS.includes(request.url)) { const response = (exception as HttpException).getResponse(); - const status = (exception as HttpException).getStatus(); - this.httpAdapterHost.httpAdapter.reply(ctx.getResponse(), response, status); + this.httpAdapterHost.httpAdapter.reply(ctx.getResponse(), response, 200); return; }