chore: Fix application deployment queue filter logic
This commit is contained in:
@@ -18,7 +18,7 @@ class CheckApplicationDeploymentQueue extends Command
|
|||||||
$deployments = ApplicationDeploymentQueue::whereIn('status', [
|
$deployments = ApplicationDeploymentQueue::whereIn('status', [
|
||||||
ApplicationDeploymentStatus::IN_PROGRESS,
|
ApplicationDeploymentStatus::IN_PROGRESS,
|
||||||
ApplicationDeploymentStatus::QUEUED,
|
ApplicationDeploymentStatus::QUEUED,
|
||||||
])->where('created_at', '>=', now()->subSeconds($seconds))->get();
|
])->where('created_at', '<=', now()->subSeconds($seconds))->get();
|
||||||
if ($deployments->isEmpty()) {
|
if ($deployments->isEmpty()) {
|
||||||
$this->info('No deployments found in the last '.$seconds.' seconds.');
|
$this->info('No deployments found in the last '.$seconds.' seconds.');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user