Don't trigger on empty ibans.

This commit is contained in:
James Cole 2023-04-29 07:08:11 +02:00
parent c5c3638dbc
commit 36157afc6a
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

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';