fix(api): update service upsert to retain name and description values if not set

This commit is contained in:
Yanluis Fermin 2025-08-11 12:31:12 -04:00
parent 4ff7ab7895
commit 9b0fd2073a
No known key found for this signature in database
GPG key ID: FD070B24B6AD2128

View file

@ -713,8 +713,8 @@ private function upsert_service(Request $request, Service $service, string $team
}
$connectToDockerNetwork = $request->connect_to_docker_network ?? false;
$service->name = $request->name ?? null;
$service->description = $request->description ?? null;
$service->name = $request->name ?? $service->name;
$service->description = $request->description ?? $service->description;
$service->environment_id = $environment->id;
$service->server_id = $server->id;
$service->destination_id = $destination->id;