From 415c192f8ea8eaff295b5db9040c2a576a0c5216 Mon Sep 17 00:00:00 2001 From: niklaskoopmann Date: Wed, 27 Nov 2024 13:06:42 +0100 Subject: [PATCH] SPSH-1520: reconfigure database health check --- 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(), ]);