From 6e5f4f761091340da0241f493d950aecea083ec9 Mon Sep 17 00:00:00 2001 From: Ajay Date: Sat, 14 Sep 2024 17:33:17 -0400 Subject: [PATCH] Fix active requests list not getting deleted --- src/utils/redis.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/redis.ts b/src/utils/redis.ts index 33dc54b..d6da615 100644 --- a/src/utils/redis.ts +++ b/src/utils/redis.ts @@ -153,7 +153,7 @@ if (config.redis?.enabled) { activeRequestPromises[key as string] = request; - void request.then(() => delete activeRequestPromises[key as string]); + void request.finally(() => delete activeRequestPromises[key as string]); return request; };