Skip to content

Commit d051514

Browse files
authored
Merge pull request coollabsio#2415 from tuarrep/patch-2
Fix Application `isDeploymentInprogress` method
2 parents 367a373 + 5674879 commit d051514

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Models/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ public function source()
522522

523523
public function isDeploymentInprogress()
524524
{
525-
$deployments = ApplicationDeploymentQueue::where('application_id', $this->id)->where('status', ApplicationDeploymentStatus::IN_PROGRESS)->where('status', ApplicationDeploymentStatus::QUEUED)->count();
525+
$deployments = ApplicationDeploymentQueue::where('application_id', $this->id)->whereIn('status', [ApplicationDeploymentStatus::IN_PROGRESS, ApplicationDeploymentStatus::QUEUED])->count();
526526
if ($deployments > 0) {
527527
return true;
528528
}

0 commit comments

Comments
 (0)