Browse Source

Throw invalid symbol in case of undefined asset keys

pull/2302/head
httpiga 2 years ago
parent
commit
824475058b
  1. 2
      apps/api/src/app/import/import.service.ts

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

@ -566,7 +566,7 @@ export class ImportService {
])
)?.[symbol];
if (!assetProfile) {
if (!assetProfile?.name) {
throw new Error(
`activities.${index}.symbol ("${symbol}") is not valid for the specified data source ("${dataSource}")`
);

Loading…
Cancel
Save