fix: Edit account with parent_account_id.

This commit is contained in:
Ahmed Bouhuolia
2020-10-28 18:41:07 +02:00
parent 3caf076e05
commit fd6a3224fa

View File

@@ -221,7 +221,7 @@ export default class AccountsService {
}
if (accountDTO.parentAccountId) {
const parentAccount = await this.getParentAccountOrThrowError(
accountDTO.parentAccountId, oldAccount.id,
tenantId, accountDTO.parentAccountId, oldAccount.id,
);
this.throwErrorIfParentHasDiffType(accountDTO, parentAccount);
}