Fixed a bug in the store transaction routine.

This commit is contained in:
James Cole 2016-10-22 20:50:20 +02:00
parent 5bff509346
commit f1fa6c3108

View File

@ -43,7 +43,7 @@ class StoredJournalEventHandler
$piggyBankId = $event->piggyBankId;
/** @var PiggyBank $piggyBank */
$piggyBank = $journal->user()->piggyBanks()->where('piggy_banks.id', $piggyBankId)->first(['piggy_banks.*']);
$piggyBank = $journal->user->piggyBanks()->where('piggy_banks.id', $piggyBankId)->first(['piggy_banks.*']);
if (is_null($piggyBank)) {
return true;