From 9a685108c7e582498887a668de56d6dfcf92ac3d Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Sun, 10 Jul 2022 13:50:32 +1000 Subject: [PATCH] Fix username/discrim changing --- api/assets/schemas.json | 3 +++ api/src/routes/users/@me/index.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/api/assets/schemas.json b/api/assets/schemas.json index 26ed589e..942e205f 100644 --- a/api/assets/schemas.json +++ b/api/assets/schemas.json @@ -12526,6 +12526,9 @@ }, "code": { "type": "string" + }, + "discriminator": { + "type": "string" } }, "additionalProperties": false, diff --git a/api/src/routes/users/@me/index.ts b/api/src/routes/users/@me/index.ts index 1af413c4..107e59c4 100644 --- a/api/src/routes/users/@me/index.ts +++ b/api/src/routes/users/@me/index.ts @@ -21,6 +21,7 @@ export interface UserModifySchema { password?: string; new_password?: string; code?: string; + discriminator?: string; } router.get("/", route({}), async (req: Request, res: Response) => {