Browse Source

Refactor getCashPositions()

pull/4800/head
Thomas Kaul 3 months ago
parent
commit
adbfac8fa0
  1. 6
      apps/api/src/app/portfolio/portfolio.service.ts

6
apps/api/src/app/portfolio/portfolio.service.ts

@ -542,7 +542,7 @@ export class PortfolioService {
}
if (filters?.length === 0 || isFilteredByAccount || isFilteredByCash) {
const cashPositions = await this.getCashPositions({
const cashPositions = this.getCashPositions({
cashDetails,
userCurrency,
value: filteredValueInBaseCurrency
@ -567,7 +567,7 @@ export class PortfolioService {
filters[0].id === TAG_ID_EMERGENCY_FUND &&
filters[0].type === 'TAG'
) {
const emergencyFundCashPositions = await this.getCashPositions({
const emergencyFundCashPositions = this.getCashPositions({
cashDetails,
userCurrency,
value: filteredValueInBaseCurrency
@ -1533,7 +1533,7 @@ export class PortfolioService {
return { markets, marketsAdvanced };
}
private async getCashPositions({
private getCashPositions({
cashDetails,
userCurrency,
value

Loading…
Cancel
Save