Browse Source
Task/refactor deprecated portfolio position attributes to asset profile in AI service (#6774)
Refactor deprecated portfolio position attributes to asset profile
pull/6821/head^2
Thomas Kaul
4 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
7 additions and
5 deletions
-
apps/api/src/app/endpoints/ai/ai.service.ts
|
|
|
@ -101,11 +101,13 @@ export class AiService { |
|
|
|
.map( |
|
|
|
({ |
|
|
|
allocationInPercentage, |
|
|
|
assetProfile: { |
|
|
|
assetClass, |
|
|
|
assetSubClass, |
|
|
|
currency, |
|
|
|
name: label, |
|
|
|
symbol |
|
|
|
} |
|
|
|
}) => { |
|
|
|
return AiService.HOLDINGS_TABLE_COLUMN_DEFINITIONS.reduce( |
|
|
|
(row, { key, name }) => { |
|
|
|
|