Skip to content

Commit

Permalink
Merge pull request #193 from utxostack/fix/healthcheck
Browse files Browse the repository at this point in the history
fix: healthcheck always return 200 response status code
  • Loading branch information
ahonn authored Sep 25, 2024
2 parents e177ae3 + ca3e5da commit 395ed1d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/src/filters/all-exceptions.filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 395ed1d

Please sign in to comment.