Refactor GetContainersStatus.php for improved readability and maintainability

This commit is contained in:
Andras Bacsai
2024-05-09 12:10:06 +02:00
parent ba40f93386
commit e91a64b1cc
3 changed files with 7 additions and 4 deletions

View File

@@ -449,7 +449,7 @@ class GetContainersStatus
if ($this->server->isSwarm()) {
return data_get($value, 'Spec.Name') === "coolify-proxy_$uuid";
} else {
return data_get($value, 'Name') === "$uuid-proxy";
return data_get($value, 'Name') === "/$uuid-proxy";
}
})->first();
if (!$foundTcpProxy) {
@@ -473,7 +473,7 @@ class GetContainersStatus
if ($this->server->isSwarm()) {
return data_get($value, 'Spec.Name') === "coolify-proxy_$uuid";
} else {
return data_get($value, 'Name') === "$uuid-proxy";
return data_get($value, 'Name') === "/$uuid-proxy";
}
})->first();
if (!$foundTcpProxy) {