Browse Source

Portfolio service merge changes

pull/5027/head
Dan 1 year ago
parent
commit
21ab721b69
  1. 6
      apps/api/src/app/portfolio/portfolio.service.ts

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

@ -486,6 +486,7 @@ export class PortfolioService {
impersonationId, impersonationId,
userCurrency, userCurrency,
userId, userId,
holdings,
balanceInBaseCurrency: cashDetails.balanceInBaseCurrency, balanceInBaseCurrency: cashDetails.balanceInBaseCurrency,
emergencyFundPositionsValueInBaseCurrency: emergencyFundPositionsValueInBaseCurrency:
this.getEmergencyFundPositionsValueInBaseCurrency({ this.getEmergencyFundPositionsValueInBaseCurrency({
@ -2176,7 +2177,7 @@ export class PortfolioService {
private async getTransactionPoints({ private async getTransactionPoints({
filters, filters,
includeDrafts = false, includeDrafts = false,
types = ['BUY', 'ITEM', 'SELL'], types = ['BUY', 'ITEM', 'SELL', 'STAKE'],
userId, userId,
withExcludedAccounts = false withExcludedAccounts = false
}: { }: {
@ -2199,8 +2200,7 @@ export class PortfolioService {
types, types,
userCurrency, userCurrency,
userId, userId,
withExcludedAccounts, withExcludedAccounts
types: ['BUY', 'SELL', 'STAKE']
}); });
if (count <= 0) { if (count <= 0) {

Loading…
Cancel
Save