refactor: Remove commented out code in Service model's saveComposeConfigs method

This commit is contained in:
Andras Bacsai 2024-06-24 22:46:19 +02:00
parent eb27e34972
commit 5500a1edb3

View File

@ -847,7 +847,7 @@ public function saveComposeConfigs()
} else { } else {
$envs = collect($config['environment']); $envs = collect($config['environment']);
} }
$envs->put('COOLIFY_CONTAINER_NAME', "$service-{$this->uuid}"); // $envs->put('COOLIFY_CONTAINER_NAME', "$service-{$this->uuid}");
foreach ($envs_from_coolify as $env) { foreach ($envs_from_coolify as $env) {
$envs = $envs->map(function ($value) use ($env) { $envs = $envs->map(function ($value) use ($env) {
if (str($value)->startsWith($env->key)) { if (str($value)->startsWith($env->key)) {