Bad hash checking found in #4997

This commit is contained in:
James Cole
2021-09-18 07:02:11 +02:00
parent 4f27ca28c3
commit d18e9da468

View File

@@ -333,7 +333,8 @@ class TransactionJournalFactory
if ($this->errorOnHash) {
Log::debug('Will verify duplicate!');
/** @var TransactionJournalMeta $result */
$result = TransactionJournalMeta::where('data', json_encode($hash, JSON_THROW_ON_ERROR))
$result = TransactionJournalMeta::withTrashed()
->where('data', json_encode($hash, JSON_THROW_ON_ERROR))
->with(['transactionJournal', 'transactionJournal.transactionGroup'])
->first();
}