mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-25 16:31:15 -06:00
Skip deleted piggies.
This commit is contained in:
parent
aaaab03995
commit
1b31d20877
@ -277,6 +277,9 @@ class TransactionGroupRepository implements TransactionGroupRepositoryInterface
|
||||
->get(['piggy_bank_events.*']);
|
||||
/** @var PiggyBankEvent $row */
|
||||
foreach ($data as $row) {
|
||||
if(null === $row->piggyBank) {
|
||||
continue;
|
||||
}
|
||||
// get currency preference.
|
||||
$currencyPreference = AccountMeta
|
||||
::where('account_id', $row->piggyBank->account_id)
|
||||
|
Loading…
Reference in New Issue
Block a user