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) {