From 66f9d63b446a8e9acc6fcaf083bd3c53c1806936 Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Wed, 15 May 2024 16:58:49 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Debuggin=20Redis=20connectivity?= =?UTF-8?q?=20issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/redis.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/redis.config.ts b/config/redis.config.ts index f5f89eb..8998da0 100644 --- a/config/redis.config.ts +++ b/config/redis.config.ts @@ -4,7 +4,7 @@ const redisURL = process.env.REDIS_URI; if (!redisURL) throw new Error("REDIS_URI environment variable is not set."); const createRedisClient = (url) => { - const client = createClient({ url }); + const client = createClient(url); client.on("error", (err) => console.error("Redis Client Error", err)); client.on("connect", () => console.log("Connected to Redis:", url));