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 @@ class Application extends BaseModel } 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; }