Browse Source

Refactor deprecated portfolio position attributes to asset profile

pull/6776/head
Thomas Kaul 3 weeks ago
parent
commit
878d2d64e1
  1. 4
      apps/api/src/models/rule.ts

4
apps/api/src/models/rule.ts

@ -41,9 +41,7 @@ export abstract class Rule<T extends RuleSettings> implements RuleInterface<T> {
public groupCurrentHoldingsByAttribute(
holdings: PortfolioPosition[],
attribute:
| keyof PortfolioPosition
| `assetProfile.${Extract<keyof PortfolioPosition['assetProfile'], string>}`,
attribute: `assetProfile.${Extract<keyof PortfolioPosition['assetProfile'], string>}`,
baseCurrency: string
) {
return Object.entries(groupBy(holdings, attribute)).map(

Loading…
Cancel
Save