Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Merge pull request #2415 from tuarrep/patch-2

Andras Bacsaid05151466c2e
diff --cc app/Models/Application.php
index af2d463c4a,9e235233e5..6e55f6626c
--- a/app/Models/Application.php
+++ b/app/Models/Application.php
@@@ -519,10 -469,9 +519,10 @@@ class Application extends BaseMode
{
return $this->morphTo();
}
+
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;
}