Browse Source

Add guard

pull/4119/head
Thomas Kaul 9 months ago
parent
commit
d55da8e200
  1. 2
      apps/api/src/services/queues/portfolio-snapshot/portfolio-snapshot.processor.ts

2
apps/api/src/services/queues/portfolio-snapshot/portfolio-snapshot.processor.ts

@ -86,7 +86,7 @@ export class PortfolioSnapshotProcessor {
const expiration = addMilliseconds( const expiration = addMilliseconds(
new Date(), new Date(),
snapshot.errors.length === 0 (snapshot.errors?.length ?? 0) === 0
? this.configurationService.get('CACHE_QUOTES_TTL') ? this.configurationService.get('CACHE_QUOTES_TTL')
: 0 : 0
); );

Loading…
Cancel
Save