mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-27 19:31:01 -06:00
Add checks to fix #3119
This commit is contained in:
parent
db05839b87
commit
400c0ccaca
@ -99,7 +99,7 @@ class FixUnevenAmount extends Command
|
||||
)
|
||||
);
|
||||
Transaction::where('transaction_journal_id', $journal->id ?? 0)->forceDelete();
|
||||
TransactionJournal::where('id', $journal-> ?? 0)->forceDelete();
|
||||
TransactionJournal::where('id', $journal->description ?? 0)->forceDelete();
|
||||
|
||||
return;
|
||||
}
|
||||
@ -119,7 +119,7 @@ class FixUnevenAmount extends Command
|
||||
);
|
||||
|
||||
Transaction::where('transaction_journal_id', $journal->id ?? 0)->forceDelete();
|
||||
TransactionJournal::where('id', $journal-> ?? 0)->forceDelete();
|
||||
TransactionJournal::where('id', $journal->description ?? 0)->forceDelete();
|
||||
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user