From a972ac2e741d9120beedff1c172e6336a6c8b48a Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 4 Oct 2026 10:20:39 +0200 Subject: [PATCH] Setup liveness probe endpoint --- apps/api/src/app/health/health.controller.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/api/src/app/health/health.controller.ts b/apps/api/src/app/health/health.controller.ts index 1f1ecb9902..32aae38e3c 100644 --- a/apps/api/src/app/health/health.controller.ts +++ b/apps/api/src/app/health/health.controller.ts @@ -34,9 +34,11 @@ export class HealthController { @Get() public async getHealth(@Res() response: Response) { - const databaseServiceHealthy = await this.healthService.isDatabaseHealthy(); - const redisCacheServiceHealthy = - await this.healthService.isRedisCacheHealthy(); + const [databaseServiceHealthy, redisCacheServiceHealthy] = + await Promise.all([ + this.healthService.isDatabaseHealthy(), + this.healthService.isRedisCacheHealthy() + ]); if (databaseServiceHealthy && redisCacheServiceHealthy) { return response