From e426fcf919123e2215651a4e28ee5c5acb8c3157 Mon Sep 17 00:00:00 2001 From: Stualyttle <27898452+Stualyttle@users.noreply.github.com.> Date: Fri, 5 Jun 2026 23:07:11 +0200 Subject: [PATCH] feat: enhance health checks with lifecycle management and update healthcheck script --- src/health/health.controller.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/health/health.controller.ts b/src/health/health.controller.ts index 10137a4..5f5ea66 100644 --- a/src/health/health.controller.ts +++ b/src/health/health.controller.ts @@ -13,13 +13,17 @@ export class HealthController { } @Get('health/live') - live() { - return this.probeService.live(); + async live(@Res({ passthrough: true }) response: Response) { + const report = await this.probeService.live(); + this.applyProbeStatus(response, report.status); + return report; } @Get('health') - healthAlias() { - return this.probeService.live(); + async healthAlias(@Res({ passthrough: true }) response: Response) { + const report = await this.probeService.live(); + this.applyProbeStatus(response, report.status); + return report; } @Get('health/startup')