refactor: e2e tests for payment received

This commit is contained in:
Ahmed Bouhuolia
2024-12-30 20:58:56 +02:00
parent 515a984714
commit b046edf337
19 changed files with 237 additions and 76 deletions

View File

@@ -243,6 +243,7 @@ export class PaymentReceivedValidators {
depositAccountId: number
): Promise<Account> {
const depositAccount = await this.accountModel.query().findById(depositAccountId);
if (!depositAccount) {
throw new ServiceError(ERRORS.DEPOSIT_ACCOUNT_NOT_FOUND);
}