mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 12:11:19 +00:00
Add imports for facades
This commit is contained in:
@@ -28,6 +28,7 @@ use FireflyIII\Events\TriggeredAuditLog;
|
||||
use FireflyIII\Models\Note;
|
||||
use FireflyIII\Models\RuleAction;
|
||||
use FireflyIII\Models\TransactionJournal;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
/**
|
||||
* Class ClearNotes.
|
||||
@@ -59,7 +60,7 @@ class ClearNotes implements ActionInterface
|
||||
}
|
||||
$before = $notes->text;
|
||||
|
||||
\DB::table('notes')
|
||||
DB::table('notes')
|
||||
->where('noteable_id', $journal['transaction_journal_id'])
|
||||
->where('noteable_type', TransactionJournal::class)
|
||||
->delete()
|
||||
|
Reference in New Issue
Block a user