From 57f0a7d4007e5aecd5c0ac5cff81a499274c327d Mon Sep 17 00:00:00 2001 From: Meghea Iulian Date: Fri, 14 Mar 2025 08:53:24 +0200 Subject: [PATCH] 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. --- app/Http/Controllers/Api/ApplicationsController.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/Http/Controllers/Api/ApplicationsController.php b/app/Http/Controllers/Api/ApplicationsController.php index aef19af23..2aa656320 100644 --- a/app/Http/Controllers/Api/ApplicationsController.php +++ b/app/Http/Controllers/Api/ApplicationsController.php @@ -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);