Browse Source

Fix dividend import for holdings without account

pull/3606/head
Thomas Kaul 1 year ago
parent
commit
3ab77f523f
  1. 10
      apps/api/src/app/import/import.service.ts

10
apps/api/src/app/import/import.service.ts

@ -72,9 +72,13 @@ export class ImportService {
}) })
]); ]);
const accounts = orders.map((order) => { const accounts = orders
return order.Account; .filter(({ Account }) => {
}); return !!Account;
})
.map(({ Account }) => {
return Account;
});
const Account = this.isUniqueAccount(accounts) ? accounts[0] : undefined; const Account = this.isUniqueAccount(accounts) ? accounts[0] : undefined;

Loading…
Cancel
Save