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.
This commit is contained in:
parent
89c4f83bc5
commit
464b76e597
1 changed files with 2 additions and 2 deletions
|
|
@ -18,6 +18,7 @@ public function deployments()
|
||||||
|
|
||||||
return ApplicationDeploymentQueue::whereIn('status', ['in_progress', 'queued'])
|
return ApplicationDeploymentQueue::whereIn('status', ['in_progress', 'queued'])
|
||||||
->whereIn('server_id', $servers->pluck('id'))
|
->whereIn('server_id', $servers->pluck('id'))
|
||||||
|
->orderBy('id')
|
||||||
->get([
|
->get([
|
||||||
'id',
|
'id',
|
||||||
'application_id',
|
'application_id',
|
||||||
|
|
@ -27,8 +28,7 @@ public function deployments()
|
||||||
'server_name',
|
'server_name',
|
||||||
'server_id',
|
'server_id',
|
||||||
'status',
|
'status',
|
||||||
])
|
]);
|
||||||
->sortBy('id');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[Computed]
|
#[Computed]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue