diff --git a/apps/api/src/app/benchmark/benchmark.service.ts b/apps/api/src/app/benchmark/benchmark.service.ts index 8c0f6c8c2..f67d69416 100644 --- a/apps/api/src/app/benchmark/benchmark.service.ts +++ b/apps/api/src/app/benchmark/benchmark.service.ts @@ -11,7 +11,7 @@ import { } from '@ghostfolio/common/config'; import { DATE_FORMAT, - calculateBenchmarkTrend, + calculateBenchmarkTrend } from '@ghostfolio/common/helper'; import { BenchmarkMarketDataDetails, @@ -39,7 +39,7 @@ export class BenchmarkService { private readonly redisCacheService: RedisCacheService, private readonly symbolProfileService: SymbolProfileService, private readonly symbolService: SymbolService - ) { } + ) {} public calculateChangeInPercentage(baseValue: number, currentValue: number) { if (baseValue && currentValue) { @@ -88,7 +88,7 @@ export class BenchmarkService { if (benchmarks) { return benchmarks; } - } catch { } + } catch {} } const benchmarkAssetProfiles = await this.getBenchmarkAssetProfiles(); @@ -226,9 +226,9 @@ export class BenchmarkService { marketPriceAtStartDate === 0 ? 0 : this.calculateChangeInPercentage( - marketPriceAtStartDate, - marketDataItem.marketPrice - ) * 100 + marketPriceAtStartDate, + marketDataItem.marketPrice + ) * 100 }; }) ]