diff --git a/src/infrastructure/redis/redis.service.ts b/src/infrastructure/redis/redis.service.ts index 8cad47f..865e28e 100644 --- a/src/infrastructure/redis/redis.service.ts +++ b/src/infrastructure/redis/redis.service.ts @@ -32,6 +32,12 @@ export class RedisService implements OnModuleInit, OnModuleDestroy { this._connected = false; this.logger.warn(`Redis error: ${err.message}`); }); + + try { + await this.client.connect(); + } catch (err: any) { + this.logger.warn(`Redis connect failed: ${err.message}`); + } } async onModuleDestroy() {