From 5b939f7d34ec3a097a97f516fedb5e7604e72ca0 Mon Sep 17 00:00:00 2001 From: Matthias Guillitte Date: Sat, 22 Feb 2025 08:46:47 +0100 Subject: [PATCH] Fix jobModel interfering --- app/Browser/BrowserJob.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Browser/BrowserJob.php b/app/Browser/BrowserJob.php index a055c1c..9ec7db9 100644 --- a/app/Browser/BrowserJob.php +++ b/app/Browser/BrowserJob.php @@ -28,14 +28,14 @@ abstract class BrowserJob implements ShouldQueue use SupportsChrome, ProvidesBrowser, Dispatchable, InteractsWithQueue, Queueable, SerializesModels; public int $jobId; - public Job $job; + public Job $jobModel; public $timeout = 500; public function __construct(int $jobId) { $this->jobId = $jobId; - $this->job = Job::find($jobId); + $this->jobModel = Job::find($jobId); } /** @@ -219,7 +219,7 @@ abstract class BrowserJob implements ShouldQueue */ public function handle(): void { - if ($this->job->is_active) { + if ($this->jobModel->is_active) { $this->execute(); } }