Просмотр исходного кода

fix(job-queue-plugin): Fix Redis health indicator error reporting

Michael Bromley 3 лет назад
Родитель
Сommit
48a30fb306
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/job-queue-plugin/src/bullmq/redis-health-indicator.ts

+ 1 - 1
packages/job-queue-plugin/src/bullmq/redis-health-indicator.ts

@@ -54,7 +54,7 @@ export class RedisHealthIndicator extends HealthIndicator {
 
         const result = this.getStatus(key, pingResult === 'PONG');
 
-        if (pingResult) {
+        if (pingResult === 'PONG') {
             return result;
         }
         throw new HealthCheckError('Redis failed', result);