mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
fix: attempt to fix job parameters (#1050)
This commit is contained in:
@@ -12,6 +12,7 @@ use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Queue\Attributes\DeleteWhenMissingModels;
|
||||
use Illuminate\Queue\Attributes\WithoutRelations;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
#[DeleteWhenMissingModels]
|
||||
#[WithoutRelations]
|
||||
@@ -20,12 +21,13 @@ class OptimizeImageJob implements ShouldQueue
|
||||
use Dispatchable;
|
||||
use InteractsWithQueue;
|
||||
use Queueable;
|
||||
use SerializesModels;
|
||||
|
||||
public function __construct(
|
||||
public readonly Image $image,
|
||||
public readonly string $extension = 'avif',
|
||||
public readonly ?int $width = null,
|
||||
public readonly ?int $height = null,
|
||||
protected Image $image,
|
||||
protected string $extension = 'avif',
|
||||
protected ?int $width = null,
|
||||
protected ?int $height = null,
|
||||
) {}
|
||||
|
||||
public function handle(): void
|
||||
|
||||
Reference in New Issue
Block a user