Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Bugfix/fix Redis cache health check (#4748)

Thomas Kaul9a75e7d25790
diff --git a/apps/api/src/app/redis-cache/redis-cache.service.ts b/apps/api/src/app/redis-cache/redis-cache.service.ts
index 97d71ae619..e6e98d6226 100644
--- a/apps/api/src/app/redis-cache/redis-cache.service.ts
+++ b/apps/api/src/app/redis-cache/redis-cache.service.ts
@@ -80,7 +80,7 @@ export class RedisCacheService {
public async isHealthy() {
try {
- const isHealthy = await Promise.race([
+ await Promise.race([
this.getKeys(),
new Promise((_, reject) =>
setTimeout(
@@ -90,7 +90,7 @@ export class RedisCacheService {
)
]);
- return isHealthy === 'PONG';
+ return true;
} catch (error) {
return false;
}