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.

fix: add missing team model

Andras Bacsai10d38b709bdf
diff --git a/app/Models/ServiceApplication.php b/app/Models/ServiceApplication.php
index 256f6a106c..f8fcda0044 100644
--- a/app/Models/ServiceApplication.php
+++ b/app/Models/ServiceApplication.php
@@ -40,6 +40,10 @@ class ServiceApplication extends BaseModel
{
return 'service';
}
+ public function team()
+ {
+ return data_get($this, 'environment.project.team');
+ }
public function workdir() {
return service_configuration_dir() . "/{$this->service->uuid}";
}
diff --git a/app/Models/ServiceDatabase.php b/app/Models/ServiceDatabase.php
index 710bab1fff..9d90641e1a 100644
--- a/app/Models/ServiceDatabase.php
+++ b/app/Models/ServiceDatabase.php
@@ -59,6 +59,10 @@ class ServiceDatabase extends BaseModel
}
return "{$realIp}:{$port}";
}
+ public function team()
+ {
+ return data_get($this, 'environment.project.team');
+ }
public function workdir() {
return service_configuration_dir() . "/{$this->service->uuid}";
}