mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-12 22:26:12 -05:00
fix detailed map date validator
This commit is contained in:
@@ -29,7 +29,7 @@ export const detailedMapSchema = z.array(
|
||||
winners: teamInfoSchema,
|
||||
losers: teamInfoSchema,
|
||||
date: z.string().refine((val) => {
|
||||
const d = new Date(val);
|
||||
const d = new Date(Number(val));
|
||||
const timestamp = d.getTime();
|
||||
if (Number.isNaN(timestamp)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user