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);
} 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);
}

Loading…
Cancel
Save