An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: Add missing middleware for server check job
Andras Bacsaid3b3c2f7fd4f
diff --git a/app/Jobs/ServerCheckJob.php b/app/Jobs/ServerCheckJob.phpindex 6a2233726d..3976477e79 100644--- a/app/Jobs/ServerCheckJob.php+++ b/app/Jobs/ServerCheckJob.php@@ -16,6 +16,7 @@ use Illuminate\Contracts\Queue\ShouldBeEncrypted;use Illuminate\Contracts\Queue\ShouldQueue;use Illuminate\Foundation\Bus\Dispatchable;use Illuminate\Queue\InteractsWithQueue;+use Illuminate\Queue\Middleware\WithoutOverlapping;use Illuminate\Queue\SerializesModels;use Illuminate\Support\Arr;@@ -42,15 +43,15 @@ class ServerCheckJob implements ShouldBeEncrypted, ShouldQueuepublic function __construct(public Server $server) {}- // public function middleware(): array- // {- // return [(new WithoutOverlapping($this->server->uuid))];- // }+ public function middleware(): array+ {+ return [(new WithoutOverlapping($this->server->uuid))];+ }- // public function uniqueId(): int- // {- // return $this->server->uuid;- // }+ public function uniqueId(): int+ {+ return $this->server->uuid;+ }public function handle(){