mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Don't trigger on empty ibans.
This commit is contained in:
parent
c5c3638dbc
commit
36157afc6a
@ -73,6 +73,9 @@ class FixIbans extends Command
|
|||||||
$userId = (int)$account->user_id;
|
$userId = (int)$account->user_id;
|
||||||
$set[$userId] = $set[$userId] ?? [];
|
$set[$userId] = $set[$userId] ?? [];
|
||||||
$iban = (string)$account->iban;
|
$iban = (string)$account->iban;
|
||||||
|
if('' === $iban) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$type = $account->accountType->type;
|
$type = $account->accountType->type;
|
||||||
if(in_array($type, [AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE], true)) {
|
if(in_array($type, [AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE], true)) {
|
||||||
$type = 'liabilities';
|
$type = 'liabilities';
|
||||||
|
Loading…
Reference in New Issue
Block a user