mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-06-11 03:30:59 -05:00
Fix crash
This commit is contained in:
parent
d8dfeb9a93
commit
cf3a9769d9
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user