Merge pull request #7442 from firefly-iii/fix-iban-check

Don't trigger on empty ibans.
This commit is contained in:
James Cole
2023-04-29 07:09:05 +02:00
committed by GitHub

View File

@@ -73,6 +73,9 @@ class FixIbans extends Command
$userId = (int)$account->user_id;
$set[$userId] = $set[$userId] ?? [];
$iban = (string)$account->iban;
if('' === $iban) {
continue;
}
$type = $account->accountType->type;
if(in_array($type, [AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE], true)) {
$type = 'liabilities';