fix(api): if domains field is empty clear the fqdn column

- providing an empty string for `domains` allows the ability to remove all URLs from the domains field
This commit is contained in:
peaklabs-dev
2026-01-15 13:12:49 +01:00
parent 161e0d2b05
commit e53c71908f
2 changed files with 13 additions and 1 deletions

View File

@@ -90,7 +90,7 @@ function sharedDataApplications()
'is_auto_deploy_enabled' => 'boolean',
'is_force_https_enabled' => 'boolean',
'static_image' => Rule::enum(StaticImageTypes::class),
'domains' => 'string',
'domains' => 'string|nullable',
'redirect' => Rule::enum(RedirectTypes::class),
'git_commit_sha' => 'string',
'docker_registry_image_name' => 'string|nullable',