chore: Fix application deployment queue filter logic

This commit is contained in:
Andras Bacsai
2024-10-03 21:32:02 +02:00
parent 5f07b473e9
commit 33cb2d150d

View File

@@ -18,7 +18,7 @@ class CheckApplicationDeploymentQueue extends Command
$deployments = ApplicationDeploymentQueue::whereIn('status', [
ApplicationDeploymentStatus::IN_PROGRESS,
ApplicationDeploymentStatus::QUEUED,
])->where('created_at', '>=', now()->subSeconds($seconds))->get();
])->where('created_at', '<=', now()->subSeconds($seconds))->get();
if ($deployments->isEmpty()) {
$this->info('No deployments found in the last '.$seconds.' seconds.');