From 10d38b709bdffd263c2e1426d53bf0adb5e0e35f Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 28 May 2024 14:49:03 +0200 Subject: [PATCH] fix: add missing team model --- app/Models/ServiceApplication.php | 4 ++++ app/Models/ServiceDatabase.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/app/Models/ServiceApplication.php b/app/Models/ServiceApplication.php index 256f6a106..f8fcda004 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 710bab1ff..9d90641e1 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}"; }