Browse Source

Fix portfolio calculator fee test

pull/3393/head
Thomas Kaul 1 year ago
parent
commit
9bbe442405
  1. 5
      apps/api/src/app/portfolio/calculator/portfolio-calculator.ts

5
apps/api/src/app/portfolio/calculator/portfolio-calculator.ts

@ -281,7 +281,10 @@ export abstract class PortfolioCalculator {
} = await this.currentRateService.getValues({ } = await this.currentRateService.getValues({
dataGatheringItems, dataGatheringItems,
dateQuery: { dateQuery: {
gte: parseDate(firstTransactionPoint?.date), // TODO: Improve?
gte: firstTransactionPoint?.date
? parseDate(firstTransactionPoint.date)
: endDate,
lt: endDate lt: endDate
} }
}); });

Loading…
Cancel
Save