From 060988d92379929875a7686fe83c67a142511faf Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 9 Sep 2024 09:05:40 +0200 Subject: [PATCH] fix: reenable overlapping servercheckjob --- app/Jobs/ServerCheckJob.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/Jobs/ServerCheckJob.php b/app/Jobs/ServerCheckJob.php index 3dbd9d3a7..5b0eec7c6 100644 --- a/app/Jobs/ServerCheckJob.php +++ b/app/Jobs/ServerCheckJob.php @@ -43,15 +43,15 @@ class ServerCheckJob implements ShouldBeEncrypted, ShouldQueue public 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() { @@ -124,7 +124,7 @@ class ServerCheckJob implements ShouldBeEncrypted, ShouldQueue private function checkLogDrainContainer() { - if(! $this->server->isLogDrainEnabled()) { + if (! $this->server->isLogDrainEnabled()) { return; } $foundLogDrainContainer = $this->containers->filter(function ($value, $key) {