From 464b76e5973a3242ba48fa9f8d4e9e71b451c090 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Wed, 1 Oct 2025 20:10:22 +0200 Subject: [PATCH] fix(deployments): order deployments by ID for consistent retrieval - Added ordering by ID to the deployments query to ensure consistent results. - Removed unnecessary sorting after retrieval to streamline the data handling process. --- app/Livewire/DeploymentsIndicator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Livewire/DeploymentsIndicator.php b/app/Livewire/DeploymentsIndicator.php index 34529a7e7..0293ad6c6 100644 --- a/app/Livewire/DeploymentsIndicator.php +++ b/app/Livewire/DeploymentsIndicator.php @@ -18,6 +18,7 @@ public function deployments() return ApplicationDeploymentQueue::whereIn('status', ['in_progress', 'queued']) ->whereIn('server_id', $servers->pluck('id')) + ->orderBy('id') ->get([ 'id', 'application_id', @@ -27,8 +28,7 @@ public function deployments() 'server_name', 'server_id', 'status', - ]) - ->sortBy('id'); + ]); } #[Computed]