fix: tolerate partial config updates

This commit is contained in:
Lan
2026-06-03 03:08:19 +08:00
parent 6fe68be2dd
commit 6805206efd
2 changed files with 45 additions and 28 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ async def update_config(
data: dict,
config_service: ConfigService = Depends(get_config_service),
):
data.pop("themesChoices")
data.pop("themesChoices", None)
await config_service.update_config(data)
return APIResponse()