fix(api): update service upsert to retain name and description values if not set
This commit is contained in:
parent
4ff7ab7895
commit
9b0fd2073a
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue