From a6fe74c0f26e701a25defa404fc8304a85c9b523 Mon Sep 17 00:00:00 2001 From: Dylan Seago Date: Fri, 2 Sep 2022 17:38:38 -0400 Subject: [PATCH] Always pass redis options through to ioredis constructor --- lib/redis-client.provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redis-client.provider.ts b/lib/redis-client.provider.ts index eac33a1..c68a3e8 100644 --- a/lib/redis-client.provider.ts +++ b/lib/redis-client.provider.ts @@ -14,7 +14,7 @@ export interface RedisClient { async function getClient(options: RedisModuleOptions): Promise { const { onClientReady, url, ...opt } = options; - const client = url ? new Redis(url) : new Redis(opt); + const client = url ? new Redis(url, opt) : new Redis(opt); if (onClientReady) { onClientReady(client) }