fix: Add missing middleware for server check job
This commit is contained in:
@@ -16,6 +16,7 @@ use Illuminate\Contracts\Queue\ShouldBeEncrypted;
|
|||||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
use Illuminate\Foundation\Bus\Dispatchable;
|
use Illuminate\Foundation\Bus\Dispatchable;
|
||||||
use Illuminate\Queue\InteractsWithQueue;
|
use Illuminate\Queue\InteractsWithQueue;
|
||||||
|
use Illuminate\Queue\Middleware\WithoutOverlapping;
|
||||||
use Illuminate\Queue\SerializesModels;
|
use Illuminate\Queue\SerializesModels;
|
||||||
use Illuminate\Support\Arr;
|
use Illuminate\Support\Arr;
|
||||||
|
|
||||||
@@ -42,15 +43,15 @@ class ServerCheckJob implements ShouldBeEncrypted, ShouldQueue
|
|||||||
|
|
||||||
public function __construct(public Server $server) {}
|
public function __construct(public Server $server) {}
|
||||||
|
|
||||||
// public function middleware(): array
|
public function middleware(): array
|
||||||
// {
|
{
|
||||||
// return [(new WithoutOverlapping($this->server->uuid))];
|
return [(new WithoutOverlapping($this->server->uuid))];
|
||||||
// }
|
}
|
||||||
|
|
||||||
// public function uniqueId(): int
|
public function uniqueId(): int
|
||||||
// {
|
{
|
||||||
// return $this->server->uuid;
|
return $this->server->uuid;
|
||||||
// }
|
}
|
||||||
|
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user