From bc48b42ff13218f553af5e056435a56cada4f8a9 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 5 Aug 2024 15:02:33 +0200 Subject: [PATCH] refactor: Remove unused code for checking server status in Heading.php --- app/Livewire/Project/Application/Heading.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/Livewire/Project/Application/Heading.php b/app/Livewire/Project/Application/Heading.php index b5f01587a..c02949e17 100644 --- a/app/Livewire/Project/Application/Heading.php +++ b/app/Livewire/Project/Application/Heading.php @@ -5,8 +5,6 @@ namespace App\Livewire\Project\Application; use App\Actions\Application\StopApplication; use App\Actions\Docker\GetContainersStatus; use App\Events\ApplicationStatusChanged; -use App\Jobs\ContainerStatusJob; -use App\Jobs\ServerStatusJob; use App\Models\Application; use Livewire\Component; use Visus\Cuid2\Cuid2; @@ -46,11 +44,7 @@ class Heading extends Component { if ($this->application->destination->server->isFunctional()) { GetContainersStatus::dispatch($this->application->destination->server)->onQueue('high'); - // dispatch(new ContainerStatusJob($this->application->destination->server)); - } else { - dispatch(new ServerStatusJob($this->application->destination->server)); } - if ($showNotification) { $this->dispatch('success', 'Success', 'Application status updated.'); }