mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
refactor: e2e tests for payment received
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user