|
@ -285,6 +285,7 @@ export class PortfolioController { |
|
|
@Query('accounts') filterByAccounts?: string, |
|
|
@Query('accounts') filterByAccounts?: string, |
|
|
@Query('assetClasses') filterByAssetClasses?: string, |
|
|
@Query('assetClasses') filterByAssetClasses?: string, |
|
|
@Query('query') filterBySearchQuery?: string, |
|
|
@Query('query') filterBySearchQuery?: string, |
|
|
|
|
|
@Query('pastInvestments') pastInvestments: boolean = false, |
|
|
@Query('tags') filterByTags?: string |
|
|
@Query('tags') filterByTags?: string |
|
|
): Promise<PortfolioHoldingsResponse> { |
|
|
): Promise<PortfolioHoldingsResponse> { |
|
|
const filters = this.apiService.buildFiltersFromQueryParams({ |
|
|
const filters = this.apiService.buildFiltersFromQueryParams({ |
|
@ -297,6 +298,7 @@ export class PortfolioController { |
|
|
const { holdings } = await this.portfolioService.getDetails({ |
|
|
const { holdings } = await this.portfolioService.getDetails({ |
|
|
filters, |
|
|
filters, |
|
|
impersonationId, |
|
|
impersonationId, |
|
|
|
|
|
pastInvestments, |
|
|
userId: this.request.user.id |
|
|
userId: this.request.user.id |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|