Browse Source

Clean up

pull/5583/head
Thomas Kaul 1 month ago
parent
commit
dc2c0a50a6
  1. 6
      apps/api/src/app/import/import.service.ts

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

@ -718,12 +718,6 @@ export class ImportService {
index, index,
{ currency, dataSource, symbol, type } { currency, dataSource, symbol, type }
] of activitiesDto.entries()) { ] of activitiesDto.entries()) {
if (type === 'ITEM') {
throw new Error(
`activities.${index}.type ("${type}") is deprecated, please use "BUY" instead`
);
}
if (!dataSources.includes(dataSource)) { if (!dataSources.includes(dataSource)) {
throw new Error( throw new Error(
`activities.${index}.dataSource ("${dataSource}") is not valid` `activities.${index}.dataSource ("${dataSource}") is not valid`

Loading…
Cancel
Save