fix(api): update service upsert to retain name and description values if not set
This commit is contained in:
@@ -713,8 +713,8 @@ class ServicesController extends Controller
|
|||||||
}
|
}
|
||||||
$connectToDockerNetwork = $request->connect_to_docker_network ?? false;
|
$connectToDockerNetwork = $request->connect_to_docker_network ?? false;
|
||||||
|
|
||||||
$service->name = $request->name ?? null;
|
$service->name = $request->name ?? $service->name;
|
||||||
$service->description = $request->description ?? null;
|
$service->description = $request->description ?? $service->description;
|
||||||
$service->environment_id = $environment->id;
|
$service->environment_id = $environment->id;
|
||||||
$service->server_id = $server->id;
|
$service->server_id = $server->id;
|
||||||
$service->destination_id = $destination->id;
|
$service->destination_id = $destination->id;
|
||||||
|
Reference in New Issue
Block a user