From 23a1b1925f6d49e9028ca90d03ccf78d6d9d7a1d Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 17 Jul 2024 07:59:12 +0200 Subject: [PATCH] fix: tag deployments --- app/Livewire/Tags/Index.php | 6 +++--- app/Livewire/Tags/Show.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Livewire/Tags/Index.php b/app/Livewire/Tags/Index.php index 91e15835f..2e3fbd8e0 100644 --- a/app/Livewire/Tags/Index.php +++ b/app/Livewire/Tags/Index.php @@ -2,7 +2,7 @@ namespace App\Livewire\Tags; -use App\Http\Controllers\Api\Deploy; +use App\Http\Controllers\Api\DeployController; use App\Models\Tag; use Illuminate\Support\Collection; use Livewire\Attributes\Url; @@ -51,11 +51,11 @@ public function redeploy_all() { try { $this->applications->each(function ($resource) { - $deploy = new Deploy(); + $deploy = new DeployController(); $deploy->deploy_resource($resource); }); $this->services->each(function ($resource) { - $deploy = new Deploy(); + $deploy = new DeployController(); $deploy->deploy_resource($resource); }); $this->dispatch('success', 'Mass deployment started.'); diff --git a/app/Livewire/Tags/Show.php b/app/Livewire/Tags/Show.php index f4ecc67a0..ccd190c16 100644 --- a/app/Livewire/Tags/Show.php +++ b/app/Livewire/Tags/Show.php @@ -2,7 +2,7 @@ namespace App\Livewire\Tags; -use App\Http\Controllers\Api\Deploy; +use App\Http\Controllers\Api\DeployController; use App\Models\ApplicationDeploymentQueue; use App\Models\Tag; use Livewire\Component; @@ -59,11 +59,11 @@ public function redeploy_all() try { $message = collect([]); $this->applications->each(function ($resource) use ($message) { - $deploy = new Deploy(); + $deploy = new DeployController(); $message->push($deploy->deploy_resource($resource)); }); $this->services->each(function ($resource) use ($message) { - $deploy = new Deploy(); + $deploy = new DeployController(); $message->push($deploy->deploy_resource($resource)); }); $this->dispatch('success', 'Mass deployment started.');