Browse Source

Refactoring

pull/5772/head
Thomas Kaul 2 weeks ago
parent
commit
a194fb6984
  1. 4
      apps/api/src/app/endpoints/ai/ai.service.ts

4
apps/api/src/app/endpoints/ai/ai.service.ts

@ -68,7 +68,7 @@ export class AiService {
{ align: 'right', name: 'Allocation in Percentage' } { align: 'right', name: 'Allocation in Percentage' }
]; ];
const rows = Object.values(holdings) const holdingsTableRows = Object.values(holdings)
.sort((a, b) => { .sort((a, b) => {
return b.allocationInPercentage - a.allocationInPercentage; return b.allocationInPercentage - a.allocationInPercentage;
}) })
@ -92,7 +92,7 @@ export class AiService {
} }
); );
const holdingsTableString = tablemark(rows, { const holdingsTableString = tablemark(holdingsTableRows, {
columns: holdingsTableColumns columns: holdingsTableColumns
}); });

Loading…
Cancel
Save