diff --git a/app/Models/Application.php b/app/Models/Application.php index af2d463c4..6e55f6626 100644 --- a/app/Models/Application.php +++ b/app/Models/Application.php @@ -522,7 +522,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; }