From 33cb2d150df952c9e867941c9d4493e60e99f02f Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 3 Oct 2024 21:32:02 +0200 Subject: [PATCH] chore: Fix application deployment queue filter logic --- app/Console/Commands/CheckApplicationDeploymentQueue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/CheckApplicationDeploymentQueue.php b/app/Console/Commands/CheckApplicationDeploymentQueue.php index 9f66e058e..e89d26f2c 100644 --- a/app/Console/Commands/CheckApplicationDeploymentQueue.php +++ b/app/Console/Commands/CheckApplicationDeploymentQueue.php @@ -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.');