mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-06 05:26:54 +08:00
chore: temporairly allow null discordIds
This commit is contained in:
parent
f0f27f0733
commit
e8c0fc08d0
1 changed files with 5 additions and 1 deletions
|
@ -32,7 +32,11 @@ export const RedisXpLeaderboardEntrySchema = z.object({
|
|||
lastActivityTimestamp: z.number().int().nonnegative(),
|
||||
timeTypedSeconds: z.number().nonnegative(),
|
||||
// optionals
|
||||
discordId: z.string().optional(),
|
||||
// discordId: z.string().optional(),
|
||||
discordId: z //todo remove once weekly leaderboards reset twice and remove null values
|
||||
.string()
|
||||
.optional()
|
||||
.or(z.null().transform((_val) => undefined)),
|
||||
discordAvatar: z.string().optional(),
|
||||
badgeId: z.number().int().optional(),
|
||||
isPremium: z.boolean().optional(),
|
||||
|
|
Loading…
Add table
Reference in a new issue