Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Task/refactor deprecated portfolio position attributes to asset profile in AI service (#6774)

Thomas Kaul15ba37e20c7c
diff --git a/apps/api/src/app/endpoints/ai/ai.service.ts b/apps/api/src/app/endpoints/ai/ai.service.ts
index 362f4a7285..d0ef178442 100644
--- a/apps/api/src/app/endpoints/ai/ai.service.ts
+++ b/apps/api/src/app/endpoints/ai/ai.service.ts
@@ -101,11 +101,13 @@ export class AiService {
.map(
({
allocationInPercentage,
- assetClass,
- assetSubClass,
- currency,
- name: label,
- symbol
+ assetProfile: {
+ assetClass,
+ assetSubClass,
+ currency,
+ name: label,
+ symbol
+ }
}) => {
return AiService.HOLDINGS_TABLE_COLUMN_DEFINITIONS.reduce(
(row, { key, name }) => {