diff --git a/assets/openapi.json b/assets/openapi.json index c63c39b9..9eed4bc3 100644 Binary files a/assets/openapi.json and b/assets/openapi.json differ diff --git a/assets/schemas.json b/assets/schemas.json index c4e09d07..663ebb8c 100644 Binary files a/assets/schemas.json and b/assets/schemas.json differ diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts index 09e8805f..4bd41d21 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts @@ -358,6 +358,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { // so for instances that migrated, users may not have a `user_settings` row. let createUserSettingsTime: ElapsedTime | undefined = undefined; if (!user.settings) { + console.warn("[WARN] Creating new user settings!") user.settings = new UserSettings(); await user.settings.save(); createUserSettingsTime = taskSw.getElapsedAndReset(); diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts index d1b3c709..840c028d 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -58,7 +58,7 @@ export enum PrivateUserEnum { purchased_flags, premium_usage_flags, disabled, - // settings, // now a relation + settings, // locale } export type PrivateUserKeys = keyof typeof PrivateUserEnum | PublicUserKeys;