Final fix, I hope.

This commit is contained in:
James Cole 2022-10-02 20:27:21 +02:00
parent 536e054961
commit 38bdd6c36c
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -50,9 +50,9 @@ class SetDescription implements ActionInterface
*/
public function actOnArray(array $journal): bool
{
/** @var TransactionJournal $journal */
/** @var TransactionJournal $object */
$object = TransactionJournal::where('user_id', $journal['user_id'])->find($journal['transaction_journal_id']);
$before = $journal->description;
$before = $object->description;
DB::table('transaction_journals')
->where('id', '=', $journal['transaction_journal_id'])