Merge pull request #2415 from tuarrep/patch-2
Fix Application `isDeploymentInprogress` method
This commit is contained in:
commit
d05151466c
@ -522,7 +522,7 @@ public function source()
|
|||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user