fix: disconnect Redis health checker (#351)

This commit is contained in:
ceroma 2024-09-29 06:00:24 -03:00 committed by GitHub
parent e9e668bd39
commit eaa80a5546
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,6 +22,7 @@ export class RedisHealthIndicator extends HealthIndicator {
}); });
await redis.ping(); await redis.ping();
redis.disconnect();
return this.getStatus(key, true); return this.getStatus(key, true);
} catch (e) { } catch (e) {
this.logger.error(e); this.logger.error(e);