From 222af12ef020bd03986cb4ba998b8dbf4495e327 Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Wed, 15 Jan 2025 17:14:05 +0100 Subject: [PATCH] feat: dockerCleanupExecutions relationship --- app/Models/Server.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/Server.php b/app/Models/Server.php index 2867f95cb..f3edd82fb 100644 --- a/app/Models/Server.php +++ b/app/Models/Server.php @@ -199,6 +199,11 @@ class Server extends BaseModel return $this->hasOne(ServerSetting::class); } + public function dockerCleanupExecutions() + { + return $this->hasMany(DockerCleanupExecution::class); + } + public function proxySet() { return $this->proxyType() && $this->proxyType() !== 'NONE' && $this->isFunctional() && ! $this->isSwarmWorker() && ! $this->settings->is_build_server;