From ffc3b7c5fbe97de4c5633b59811c27d9cd277bc0 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Tue, 16 Jul 2024 22:42:40 -0400 Subject: [PATCH] Update index.ts --- apps/api/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/api/src/index.ts b/apps/api/src/index.ts index c5e6a438..3942e937 100644 --- a/apps/api/src/index.ts +++ b/apps/api/src/index.ts @@ -45,7 +45,6 @@ if (cluster.isMaster) { app.use(cors()); // Add this line to enable CORS - const queueRedis = new Redis(process.env.REDIS_URL); const serverAdapter = new ExpressAdapter(); serverAdapter.setBasePath(`/admin/${process.env.BULL_AUTH_KEY}/queues`); @@ -318,6 +317,8 @@ if (cluster.isMaster) { `/admin/${process.env.BULL_AUTH_KEY}/redis-health`, async (req, res) => { try { + const queueRedis = new Redis(process.env.REDIS_URL); + const testKey = "test"; const testValue = "test";