fix: fix transfer to child bug

This commit is contained in:
Abdalhameed Ahmad
2025-09-16 21:01:32 +03:00
parent f1484e125b
commit 454ded627f
2 changed files with 21 additions and 3 deletions

View File

@ -65,7 +65,7 @@ export class AccountService {
increaseReservedBalance(account: Account, amount: number) {
if (account.balance < account.reservedBalance + amount) {
throw new UnprocessableEntityException('ACCOUNT.INSUFFICIENT_BALANCE');
throw new UnprocessableEntityException('CARD.INSUFFICIENT_BALANCE');
}
return this.accountRepository.increaseReservedBalance(account.id, amount);
}