fix(api): use name from request payload

In POST `/applications/dockercompose`  the `name` parameter is required.
The API thou ignores it and generates its own name for the service.
This commit is contained in:
Meghea Iulian
2025-03-14 08:53:24 +02:00
committed by Meghea Iulian
parent 3cf4d6364c
commit 57f0a7d400

View File

@@ -1310,7 +1310,6 @@ class ApplicationsController extends Controller
$service->destination_type = $destination->getMorphClass();
$service->save();
$service->name = "service-$service->uuid";
$service->parse(isNew: true);
if ($instantDeploy) {
StartService::dispatch($service);