Browse Source

fix: clean up obsolete return

pull/5771/head
Google 2 weeks ago
committed by GitHub
parent
commit
2a37ed5d8b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      apps/api/src/app/endpoints/benchmarks/benchmarks.service.ts

3
apps/api/src/app/endpoints/benchmarks/benchmarks.service.ts

@ -6,7 +6,6 @@ import { MarketDataService } from '@ghostfolio/api/services/market-data/market-d
import { DATE_FORMAT, parseDate, resetHours } from '@ghostfolio/common/helper';
import {
AssetProfileIdentifier,
BenchmarkMarketDataDetailsResponse,
Filter
} from '@ghostfolio/common/interfaces';
import { DateRange, UserWithSettings } from '@ghostfolio/common/types';
@ -43,7 +42,7 @@ export class BenchmarksService {
startDate: Date;
user: UserWithSettings;
withExcludedAccounts?: boolean;
} & AssetProfileIdentifier): Promise<BenchmarkMarketDataDetailsResponse> {
} & AssetProfileIdentifier) {
const marketData: { date: string; value: number }[] = [];
const userCurrency = user.settings.settings.baseCurrency;
const userId = user.id;

Loading…
Cancel
Save