mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix #109
This commit is contained in:
1 parent
31f7d9a643
commit
b49a2fde74
4 files changed
+4
-4
No files matched your search
@@ -250,7 +250,7 @@ class HomeSettingsHandler extends Handler {
|
||||
const settings = args.category === 'domain' ? setting.DOMAIN_USER_SETTINGS_BY_KEY : setting.SETTINGS_BY_KEY;
|
||||
for (const key in args) {
|
||||
const val = set(settings[key], key, args[key]);
|
||||
if (val) $set[key] = val;
|
||||
if (val !== undefined) $set[key] = val;
|
||||
}
|
||||
for (const key in booleanKeys) if (!args[key]) $set[key] = false;
|
||||
await setter($set);
|
||||
|
||||
Reference in new issue
Block a user