From 6103a8590dace86c6e8c23f599e9c5d82e9759a8 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 24 May 2024 17:29:38 +0200 Subject: [PATCH] fix: sentry error --- bootstrap/helpers/docker.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bootstrap/helpers/docker.php b/bootstrap/helpers/docker.php index c7c2fb26e..f6841f6ac 100644 --- a/bootstrap/helpers/docker.php +++ b/bootstrap/helpers/docker.php @@ -173,14 +173,14 @@ function defaultLabels($id, $name, $pull_request_id = 0, string $type = 'applica function generateServiceSpecificFqdns(ServiceApplication|Application $resource) { if ($resource->getMorphClass() === 'App\Models\ServiceApplication') { - $uuid = $resource->uuid; - $server = $resource->service->server; - $environment_variables = $resource->service->environment_variables; + $uuid = data_get($resource, 'uuid'); + $server = data_get($resource, 'service.server'); + $environment_variables = data_get($resource, 'service.environment_variables'); $type = $resource->serviceType(); } else if ($resource->getMorphClass() === 'App\Models\Application') { - $uuid = $resource->uuid; - $server = $resource->destination->server; - $environment_variables = $resource->environment_variables; + $uuid = data_get($resource, 'uuid'); + $server = data_get($resource, 'destination.server'); + $environment_variables = data_get($resource, 'environment_variables'); $type = $resource->serviceType(); } if (is_null($server) || is_null($type)) {