We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0f27f0 commit e8c0fc0Copy full SHA for e8c0fc0
packages/contracts/src/schemas/leaderboards.ts
@@ -32,7 +32,11 @@ export const RedisXpLeaderboardEntrySchema = z.object({
32
lastActivityTimestamp: z.number().int().nonnegative(),
33
timeTypedSeconds: z.number().nonnegative(),
34
// optionals
35
- discordId: z.string().optional(),
+ // discordId: z.string().optional(),
36
+ discordId: z //todo remove once weekly leaderboards reset twice and remove null values
37
+ .string()
38
+ .optional()
39
+ .or(z.null().transform((_val) => undefined)),
40
discordAvatar: z.string().optional(),
41
badgeId: z.number().int().optional(),
42
isPremium: z.boolean().optional(),
0 commit comments