mirror of
https://github.com/ershisan99/coolify.git
synced 2026-01-29 05:12:06 +00:00
Merge pull request #2415 from tuarrep/patch-2
Fix Application `isDeploymentInprogress` method
This commit is contained in:
@@ -522,7 +522,7 @@ class Application extends BaseModel
|
|||||||
|
|
||||||
public function isDeploymentInprogress()
|
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) {
|
if ($deployments > 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user