From 10d9ead99ea96ef412c633d0234aa0e21b3ea423 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Wed, 7 May 2025 19:58:05 +0200 Subject: [PATCH] Clean up --- apps/api/src/app/redis-cache/redis-cache.service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 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 13fdd2d40..97d71ae61 100644 --- a/apps/api/src/app/redis-cache/redis-cache.service.ts +++ b/apps/api/src/app/redis-cache/redis-cache.service.ts @@ -33,8 +33,8 @@ export class RedisCacheService { return JSON.parse(value); } catch (error: any) { if (error instanceof SyntaxError) { - Logger.warn( - `Failed to parse json, so returning the value as String :${value}`, + Logger.debug( + `Failed to parse json, returning the value as String: ${value}`, 'RedisCacheService' ); @@ -108,6 +108,7 @@ export class RedisCacheService { const keys = await this.getKeys( `${this.getPortfolioSnapshotKey({ userId })}` ); + return this.cache.mdel(keys); }