修复一堆错误

This commit is contained in:
undefined committed 2020-06-20 13:32:53 +08:00
1 parent 2d3cee7753
commit b5e3b81c17
23 files changed
+120 -159

No files matched your search

+2 -1
View File
@@ -14,7 +14,6 @@ class SystemHandler extends Handler {
this.response.body = {
path: [
['Hydro', 'homepage'],
['manage_main', null],
],
};
}
@@ -118,6 +117,8 @@ class SystemSettingHandler extends SystemHandler {
this.response.body.current = {};
this.response.body.settings = setting.SYSTEM_SETTINGS;
for (const s of this.response.body.settings) {
// FIXME no-await-in-loop
// eslint-disable-next-line no-await-in-loop
this.response.body.current[s.key] = await system.get(s.key);
}
}