Skip to content

Commit

Permalink
fix: fix domain being override when update application
Browse files Browse the repository at this point in the history
  • Loading branch information
arceushui authored Dec 16, 2024
1 parent aae54e8 commit b010564
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/Http/Controllers/Api/ApplicationsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,10 @@ public function update_by_uuid(Request $request)
removeUnnecessaryFieldsFromRequest($request);

$data = $request->all();
data_set($data, 'fqdn', $domains);
if ($request->has('domains') && $server->isProxyShouldRun()) {
data_set($data, 'fqdn', $domains);
}

if ($dockerComposeDomainsJson->count() > 0) {
data_set($data, 'docker_compose_domains', json_encode($dockerComposeDomainsJson));
}
Expand Down

0 comments on commit b010564

Please sign in to comment.