Skip to content

Commit

Permalink
SPSH-1574: Fixed the issue with data-items being saved two times
Browse files Browse the repository at this point in the history
  • Loading branch information
phaelcg committed Dec 16, 2024
1 parent 8aceada commit eba55c3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/modules/import/domain/import-event-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export class ImportEventHandler {
}
});

const importDataItemsWithLoginInfo: ImportDataItem<true>[] = [];
const importvorgangId: string = event.importVorgangId;
const importVorgang: Option<ImportVorgang<true>> = await this.importVorgangRepository.findById(importvorgangId);
if (!importVorgang) {
Expand All @@ -77,12 +76,6 @@ export class ImportEventHandler {
);
}

await Promise.allSettled(
importDataItemsWithLoginInfo.map(async (importDataItem: ImportDataItem<true>) =>
this.importDataRepository.save(importDataItem),
),
);

importVorgang.finish();
await this.importVorgangRepository.save(importVorgang);
}
Expand Down

0 comments on commit eba55c3

Please sign in to comment.