mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 05:19:37 +00:00
fix(api): domain check when updating domain
This commit is contained in:
1 parent
83f0f9fca4
commit
43e8d17197
1 file changed
+3
-2
@@ -1681,7 +1681,8 @@ class ApplicationsController extends Controller
|
||||
], 422);
|
||||
}
|
||||
$domains = $request->domains;
|
||||
if ($request->has('domains') && $server->isProxyShouldRun()) {
|
||||
$requestHasDomains = $request->has('domains');
|
||||
if ($requestHasDomains && $server->isProxyShouldRun()) {
|
||||
$uuid = $request->uuid;
|
||||
$fqdn = $request->domains;
|
||||
$fqdn = str($fqdn)->replaceEnd(',', '')->trim();
|
||||
@@ -1743,7 +1744,7 @@ class ApplicationsController extends Controller
|
||||
removeUnnecessaryFieldsFromRequest($request);
|
||||
|
||||
$data = $request->all();
|
||||
if ($request->has('domains') && $server->isProxyShouldRun()) {
|
||||
if ($requestHasDomains && $server->isProxyShouldRun()) {
|
||||
data_set($data, 'fqdn', $domains);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user