This commit is contained in:
2024-06-12 19:51:41 +02:00
parent 154e79aacd
commit 0ce904a7d8
18 changed files with 104 additions and 146 deletions

View File

@@ -29,7 +29,7 @@ class GenerateFullscreen implements ShouldQueue
public function handle(): void
{
if ($this->batch()->cancelled()) {
if (method_exists($this, 'batch') && $this->batch()?->cancelled()) {
return;
}

View File

@@ -29,7 +29,7 @@ class GenerateThumbnail implements ShouldQueue
public function handle(): void
{
if ($this->batch()->cancelled()) {
if (method_exists($this, 'batch') && $this->batch()?->cancelled()) {
return;
}

View File

@@ -24,7 +24,7 @@ class ImportImage implements ShouldQueue
public function handle(): void
{
if ($this->batch()->cancelled()) {
if (method_exists($this, 'batch') && $this->batch()?->cancelled()) {
return;
}