mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 15:30:43 +00:00
Fix discord user schema (#969)
## Description: Update the discord user zod schema to address login failures for users without avatars. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
This commit is contained in:
committed by
evanpelle
parent
dca59c8de6
commit
3136f637df
@@ -34,11 +34,11 @@ export type TokenPayload = z.infer<typeof TokenPayloadSchema>;
|
||||
export const UserMeResponseSchema = z.object({
|
||||
user: z.object({
|
||||
id: z.string(),
|
||||
avatar: z.string(),
|
||||
avatar: z.string().nullable(),
|
||||
username: z.string(),
|
||||
global_name: z.string(),
|
||||
global_name: z.string().nullable(),
|
||||
discriminator: z.string(),
|
||||
locale: z.string(),
|
||||
locale: z.string().optional(),
|
||||
}),
|
||||
player: z.object({
|
||||
publicId: z.string(),
|
||||
|
||||
Reference in New Issue
Block a user