mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix API error
This commit is contained in:
@@ -113,7 +113,7 @@ class CorrectOpeningBalanceCurrencies extends Command
|
||||
$transactions = $journal->transactions()->get();
|
||||
/** @var Transaction $transaction */
|
||||
foreach ($transactions as $transaction) {
|
||||
/** @var Account $account */
|
||||
/** @var Account|null $account */
|
||||
$account = $transaction->account()->first();
|
||||
if (null !== $account && AccountType::INITIAL_BALANCE !== $account->accountType()->first()->type) {
|
||||
return $account;
|
||||
|
Reference in New Issue
Block a user