From d79b1d7a385c2e17d7b758c433205447f825f250 Mon Sep 17 00:00:00 2001 From: Niklas Koopmann Date: Thu, 28 Nov 2024 15:38:57 +0100 Subject: [PATCH] SPSH-1520: reconfigure database health check (#797) --- src/modules/health/health.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/health/health.controller.ts b/src/modules/health/health.controller.ts index 33c22662c..59653be7a 100644 --- a/src/modules/health/health.controller.ts +++ b/src/modules/health/health.controller.ts @@ -29,7 +29,7 @@ export class HealthController { public check(): Promise { return this.health.check([ (): Promise => - this.mikroOrm.pingCheck('database', { connection: this.em.getConnection() }), + this.mikroOrm.pingCheck('database', { connection: this.em.getConnection('read'), timeout: 3000 }), (): Promise => this.keycloak.check(), (): Promise => this.redis.check(), ]);