fix: add missing team model

This commit is contained in:
Andras Bacsai 2024-05-28 14:49:03 +02:00
parent 98985690f0
commit 10d38b709b
2 changed files with 8 additions and 0 deletions

View File

@ -40,6 +40,10 @@ public function type()
{
return 'service';
}
public function team()
{
return data_get($this, 'environment.project.team');
}
public function workdir() {
return service_configuration_dir() . "/{$this->service->uuid}";
}

View File

@ -59,6 +59,10 @@ public function getServiceDatabaseUrl()
}
return "{$realIp}:{$port}";
}
public function team()
{
return data_get($this, 'environment.project.team');
}
public function workdir() {
return service_configuration_dir() . "/{$this->service->uuid}";
}