@xnestjs/ioredis 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/redis-core.module.js
CHANGED
|
@@ -135,7 +135,8 @@ let RedisCoreModule = RedisCoreModule_1 = class RedisCoreModule {
|
|
|
135
135
|
this.logger?.log('Connecting to redis at ' + ansi_colors_1.default.blue(hosts));
|
|
136
136
|
common_1.Logger.flush();
|
|
137
137
|
try {
|
|
138
|
-
|
|
138
|
+
if (this.client.redis.status === 'wait')
|
|
139
|
+
await this.client.redis.connect();
|
|
139
140
|
await this.client.redis.ping();
|
|
140
141
|
}
|
|
141
142
|
catch (e) {
|
package/esm/redis-core.module.js
CHANGED
|
@@ -132,7 +132,8 @@ let RedisCoreModule = RedisCoreModule_1 = class RedisCoreModule {
|
|
|
132
132
|
this.logger?.log('Connecting to redis at ' + colors.blue(hosts));
|
|
133
133
|
Logger.flush();
|
|
134
134
|
try {
|
|
135
|
-
|
|
135
|
+
if (this.client.redis.status === 'wait')
|
|
136
|
+
await this.client.redis.connect();
|
|
136
137
|
await this.client.redis.ping();
|
|
137
138
|
}
|
|
138
139
|
catch (e) {
|