This commit is contained in:
undefined committed 2022-10-20 11:49:41 +08:00
1 parent 500e08abac
commit c2ad7df336
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "4.2.6",
"version": "4.2.7",
"bin": "bin/hydrooj.js",
"main": "src/plugin-api",
"module": "src/plugin-api",
+1 -1
View File
@@ -171,7 +171,7 @@ class SystemSettingHandler extends SystemHandler {
for (const key in booleanKeys) {
if (typeof booleanKeys[key] === 'object') {
for (const subkey in booleanKeys[key]) {
if (!args[key][subkey]) tasks.push(system.set(`${key}.${subkey}`, false));
if (!args[key]?.[subkey]) tasks.push(system.set(`${key}.${subkey}`, false));
}
}
}