mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 16:13:54 +00:00
Debug message for #797
This commit is contained in:
@@ -296,12 +296,15 @@ trait ImportSupport
|
|||||||
*/
|
*/
|
||||||
private function hashAlreadyImported(string $hash): bool
|
private function hashAlreadyImported(string $hash): bool
|
||||||
{
|
{
|
||||||
$json = json_encode($hash);
|
$json = json_encode($hash);
|
||||||
|
/** @var TransactionJournalMeta $entry */
|
||||||
$entry = TransactionJournalMeta::leftJoin('transaction_journals', 'transaction_journals.id', '=', 'journal_meta.transaction_journal_id')
|
$entry = TransactionJournalMeta::leftJoin('transaction_journals', 'transaction_journals.id', '=', 'journal_meta.transaction_journal_id')
|
||||||
->where('data', $json)
|
->where('data', $json)
|
||||||
->where('name', 'importHash')
|
->where('name', 'importHash')
|
||||||
->first();
|
->first();
|
||||||
if (!is_null($entry)) {
|
if (!is_null($entry)) {
|
||||||
|
Log::debug(sprintf('A journal with hash %s has already been imported (spoiler: it\'s journal #%d)', $hash, $entry->transaction_journal_id));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user