Feature/clean up deprecated GET api/portfolio/positions endpoint (#3373)
This commit is contained in:
@@ -416,7 +416,7 @@ export class GfAssistantComponent implements OnChanges, OnDestroy, OnInit {
|
||||
|
||||
private searchHoldings(aSearchTerm: string): Observable<ISearchResultItem[]> {
|
||||
return this.dataService
|
||||
.fetchPositions({
|
||||
.fetchPortfolioHoldings({
|
||||
filters: [
|
||||
{
|
||||
id: aSearchTerm,
|
||||
@@ -429,8 +429,8 @@ export class GfAssistantComponent implements OnChanges, OnDestroy, OnInit {
|
||||
catchError(() => {
|
||||
return EMPTY;
|
||||
}),
|
||||
map(({ positions }) => {
|
||||
return positions.map(
|
||||
map(({ holdings }) => {
|
||||
return holdings.map(
|
||||
({ assetSubClass, currency, dataSource, name, symbol }) => {
|
||||
return {
|
||||
currency,
|
||||
|
Reference in New Issue
Block a user