Browse Source

Fix dividend import for holdings without account

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

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

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

Loading…
Cancel
Save