Skip deleted piggies.

This commit is contained in:
James Cole 2020-06-27 09:56:38 +02:00
parent aaaab03995
commit 1b31d20877

View File

@ -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)