From 4c3f7215ec97c78cf53c3c1b3a9dcff578386df6 Mon Sep 17 00:00:00 2001 From: Guillaume Derivery Date: Tue, 15 Sep 2020 17:48:26 +0200 Subject: [PATCH] Fix redis client opts pass-thru --- _src/index.ts | 2 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_src/index.ts b/_src/index.ts index d3899c2..a549995 100644 --- a/_src/index.ts +++ b/_src/index.ts @@ -65,7 +65,7 @@ class RedisSMQ extends EventEmitterĀ { this.redis = opts.client } else { - this.redis = RedisInst.createClient(opts) + this.redis = RedisInst.createClient(opts.options) } this.connected = this.redis.connected || false; diff --git a/index.js b/index.js index 36b21a9..4d850ad 100644 --- a/index.js +++ b/index.js @@ -521,7 +521,7 @@ class RedisSMQ extends EventEmitter { this.redis = opts.client; } else { - this.redis = RedisInst.createClient(opts); + this.redis = RedisInst.createClient(opts.options); } this.connected = this.redis.connected || false; if (this.connected) {