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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
feat: Add pull_request_id filter to get_last_successful_deployment method in Application model
Andras Bacsai73bc7b045e8d
diff --git a/app/Models/Application.php b/app/Models/Application.phpindex c4a6a18e24..3d0b92aafa 100644--- a/app/Models/Application.php+++ b/app/Models/Application.php@@ -459,7 +459,7 @@ class Application extends BaseModel}public function get_last_successful_deployment(){- return ApplicationDeploymentQueue::where('application_id', $this->id)->where('status', 'finished')->orderBy('created_at', 'desc')->first();+ return ApplicationDeploymentQueue::where('application_id', $this->id)->where('status', 'finished')->where('pull_request_id', 0)->orderBy('created_at', 'desc')->first();}public function get_last_days_deployments(){