diff --git a/packages/hydrooj/src/settings.ts b/packages/hydrooj/src/settings.ts index 62d8c4113..70568eef1 100644 --- a/packages/hydrooj/src/settings.ts +++ b/packages/hydrooj/src/settings.ts @@ -181,7 +181,7 @@ export class SettingService extends Service { if (path.some((p) => typeof p === 'symbol')) return currentValue; return new Proxy(currentValue, { get(self, key: string) { - return getAccess([...path, ...key]); + return getAccess([...path, key]); }, set(self, p: string | symbol, newValue: any) { that.setConfig([...path, p].join(','), newValue);