From 26073b82fd2f5a60aa833954e886d8cfb947bca4 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 24 May 2024 17:26:05 +0200 Subject: [PATCH] fix: sentry --- app/Models/ServiceApplication.php | 3 +++ app/Models/ServiceDatabase.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/app/Models/ServiceApplication.php b/app/Models/ServiceApplication.php index 820ef6fee..256f6a106 100644 --- a/app/Models/ServiceApplication.php +++ b/app/Models/ServiceApplication.php @@ -40,6 +40,9 @@ class ServiceApplication extends BaseModel { return 'service'; } + public function workdir() { + return service_configuration_dir() . "/{$this->service->uuid}"; + } public function serviceType() { $found = str(collect(SPECIFIC_SERVICES)->filter(function ($service) { diff --git a/app/Models/ServiceDatabase.php b/app/Models/ServiceDatabase.php index 76c174d08..710bab1ff 100644 --- a/app/Models/ServiceDatabase.php +++ b/app/Models/ServiceDatabase.php @@ -59,6 +59,9 @@ class ServiceDatabase extends BaseModel } return "{$realIp}:{$port}"; } + public function workdir() { + return service_configuration_dir() . "/{$this->service->uuid}"; + } public function service() { return $this->belongsTo(Service::class);