From 5674879e23608e9d905f8cd339ed9d019ccb97ca Mon Sep 17 00:00:00 2001 From: Nicolas Perraut Date: Sun, 9 Jun 2024 22:12:13 +0200 Subject: [PATCH] Fix Application `isDeploymentInprogress` method --- app/Models/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Application.php b/app/Models/Application.php index e606735df..9e235233e 100644 --- a/app/Models/Application.php +++ b/app/Models/Application.php @@ -471,7 +471,7 @@ public function source() } public function isDeploymentInprogress() { - $deployments = ApplicationDeploymentQueue::where('application_id', $this->id)->where('status', ApplicationDeploymentStatus::IN_PROGRESS)->where('status', ApplicationDeploymentStatus::QUEUED)->count(); + $deployments = ApplicationDeploymentQueue::where('application_id', $this->id)->whereIn('status', [ApplicationDeploymentStatus::IN_PROGRESS, ApplicationDeploymentStatus::QUEUED])->count(); if ($deployments > 0) { return true; }