Skip to content

Commit 5674879

Browse files
authored
Fix Application isDeploymentInprogress method
1 parent aae8131 commit 5674879

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
@@ -471,7 +471,7 @@ public function source()
471471
}
472472
public function isDeploymentInprogress()
473473
{
474-
$deployments = ApplicationDeploymentQueue::where('application_id', $this->id)->where('status', ApplicationDeploymentStatus::IN_PROGRESS)->where('status', ApplicationDeploymentStatus::QUEUED)->count();
474+
$deployments = ApplicationDeploymentQueue::where('application_id', $this->id)->whereIn('status', [ApplicationDeploymentStatus::IN_PROGRESS, ApplicationDeploymentStatus::QUEUED])->count();
475475
if ($deployments > 0) {
476476
return true;
477477
}

0 commit comments

Comments
 (0)