Browse Source

Clean up

pull/4270/head
Thomas Kaul 4 months ago
parent
commit
10d9ead99e
  1. 5
      apps/api/src/app/redis-cache/redis-cache.service.ts

5
apps/api/src/app/redis-cache/redis-cache.service.ts

@ -33,8 +33,8 @@ export class RedisCacheService {
return JSON.parse(value); return JSON.parse(value);
} catch (error: any) { } catch (error: any) {
if (error instanceof SyntaxError) { if (error instanceof SyntaxError) {
Logger.warn( Logger.debug(
`Failed to parse json, so returning the value as String :${value}`, `Failed to parse json, returning the value as String: ${value}`,
'RedisCacheService' 'RedisCacheService'
); );
@ -108,6 +108,7 @@ export class RedisCacheService {
const keys = await this.getKeys( const keys = await this.getKeys(
`${this.getPortfolioSnapshotKey({ userId })}` `${this.getPortfolioSnapshotKey({ userId })}`
); );
return this.cache.mdel(keys); return this.cache.mdel(keys);
} }

Loading…
Cancel
Save