Skip to content

Commit

Permalink
Fix event id not uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
romanzipp committed Jul 13, 2024
1 parent 33de2c3 commit 437783e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/QueueMonitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ protected static function jobQueued(JobQueued $event): void
QueueMonitor::getModel()::query()->create([
'job_id' => $event->id,
/** @phpstan-ignore-next-line */
'job_uuid' => isset($event->payload) ? $event->payload()['uuid'] : $event->id,
'job_uuid' => isset($event->payload) ? $event->payload()['uuid'] : (is_numeric($event->id) ? null : $event->id),
'name' => get_class($event->job),
/** @phpstan-ignore-next-line */
'queue' => $event->job->queue ?: 'default',
Expand Down

0 comments on commit 437783e

Please sign in to comment.