mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-18 18:44:16 +00:00
Add checks to fix #3119
This commit is contained in:
@@ -99,7 +99,7 @@ class FixUnevenAmount extends Command
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
Transaction::where('transaction_journal_id', $journal->id ?? 0)->forceDelete();
|
Transaction::where('transaction_journal_id', $journal->id ?? 0)->forceDelete();
|
||||||
TransactionJournal::where('id', $journal-> ?? 0)->forceDelete();
|
TransactionJournal::where('id', $journal->description ?? 0)->forceDelete();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -119,7 +119,7 @@ class FixUnevenAmount extends Command
|
|||||||
);
|
);
|
||||||
|
|
||||||
Transaction::where('transaction_journal_id', $journal->id ?? 0)->forceDelete();
|
Transaction::where('transaction_journal_id', $journal->id ?? 0)->forceDelete();
|
||||||
TransactionJournal::where('id', $journal-> ?? 0)->forceDelete();
|
TransactionJournal::where('id', $journal->description ?? 0)->forceDelete();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user