@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.
@@ -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
- await this.client.redis.connect();
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) {
@@ -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
- await this.client.redis.connect();
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xnestjs/ioredis",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "description": "NestJS extension library for ioredis",
5
5
  "author": "Panates",
6
6
  "license": "MIT",