mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-19 09:44:50 -05:00
Fix crash
This commit is contained in:
@@ -122,14 +122,17 @@ const winners = z.preprocess(
|
||||
|
||||
const weapons = z.preprocess(
|
||||
safeJSONParse,
|
||||
z.array(
|
||||
z.object({
|
||||
weaponSplId,
|
||||
userId: id,
|
||||
mapIndex: z.number().int().nonnegative(),
|
||||
groupMatchMapId: id,
|
||||
}),
|
||||
),
|
||||
z
|
||||
.array(
|
||||
z.object({
|
||||
weaponSplId,
|
||||
userId: id,
|
||||
mapIndex: z.number().int().nonnegative(),
|
||||
groupMatchMapId: id,
|
||||
}),
|
||||
)
|
||||
.nullish()
|
||||
.default([]),
|
||||
);
|
||||
export const matchSchema = z.union([
|
||||
z.object({
|
||||
|
||||
Reference in New Issue
Block a user