fix jobModel again
All checks were successful
Push image to registry / build-image (push) Successful in 4m31s
All checks were successful
Push image to registry / build-image (push) Successful in 4m31s
This commit is contained in:
@ -28,14 +28,12 @@ abstract class BrowserJob implements ShouldQueue
|
||||
use SupportsChrome, ProvidesBrowser, Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
public int $jobId;
|
||||
public Job $jobModel;
|
||||
|
||||
public $timeout = 500;
|
||||
|
||||
public function __construct(int $jobId)
|
||||
{
|
||||
$this->jobId = $jobId;
|
||||
$this->jobModel = Job::find($jobId);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -219,7 +217,7 @@ abstract class BrowserJob implements ShouldQueue
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
if ($this->jobModel->is_active) {
|
||||
if (Job::find($this->jobId)->is_active) {
|
||||
$this->execute();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user