Browse Source

Check assetProfile.symbol instead of name during import

pull/3523/head
Chang-Yen Tseng 1 year ago
parent
commit
c4b9e907ac
  1. 2
      apps/api/src/app/import/import.service.ts

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

@ -610,7 +610,7 @@ export class ImportService {
};
if (type === 'BUY' || type === 'DIVIDEND' || type === 'SELL') {
if (!assetProfile?.name) {
if (!assetProfile?.symbol) {
throw new Error(
`activities.${index}.symbol ("${symbol}") is not valid for the specified data source ("${dataSource}")`
);

Loading…
Cancel
Save