Skip to content

Commit

Permalink
Fix for previous commit: dispatch QueryLogWritten without event() helper
Browse files Browse the repository at this point in the history
  • Loading branch information
onlime committed Mar 9, 2024
1 parent 8d3fb54 commit f067fd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ protected function writeLine(string $line, bool $override = false): int|false
public function __destruct()
{
if ($this->loggedQueryCount > 0) {
event(new QueryLogWritten(
QueryLogWritten::dispatch(
$this->loggedQueryCount,
$this->loggedDmlQuery,
$this->logRecords,
));
);
}
}
}

0 comments on commit f067fd9

Please sign in to comment.