From ef806d82fc68ecc96813b2d210c4f8abdf786386 Mon Sep 17 00:00:00 2001 From: HarukaKishida Date: Sun, 27 Apr 2025 01:07:18 +0900 Subject: [PATCH] fix format --- apps/api/src/app/redis-cache/redis-cache.service.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/api/src/app/redis-cache/redis-cache.service.ts b/apps/api/src/app/redis-cache/redis-cache.service.ts index 9c940ce86..13fdd2d40 100644 --- a/apps/api/src/app/redis-cache/redis-cache.service.ts +++ b/apps/api/src/app/redis-cache/redis-cache.service.ts @@ -30,7 +30,6 @@ export class RedisCacheService { this.cache.stores[0].deserialize = (value) => { try { - return JSON.parse(value); } catch (error: any) { if (error instanceof SyntaxError) { @@ -41,11 +40,10 @@ export class RedisCacheService { return value; } else { - throw error; } - }; - } + } + }; for await (const [key] of this.cache.stores[0].iterator({})) { if ((prefix && key.startsWith(prefix)) || !prefix) {