Skip to content

Commit

Permalink
[NOTASK] Improve bankData verification
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick1712 committed Dec 31, 2024
1 parent 654a200 commit 81d6adb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class BankDataService {
if ([BankDataType.IDENT, BankDataType.USER].includes(entity.type)) return;

const existing = await this.bankDataRepo.findOne({
where: { iban: entity.iban, approved: true },
where: { id: Not(entity.id), iban: entity.iban, approved: true },
relations: { userData: true },
});

Expand Down

0 comments on commit 81d6adb

Please sign in to comment.