From 25b3079fa83eb3b2c8ce2563037333797596907b Mon Sep 17 00:00:00 2001 From: scdhh Date: Sun, 4 Aug 2024 19:03:59 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E6=AD=A3=20V2=20TETR.IO=20rec?= =?UTF-8?q?ord=20=E6=95=B0=E6=8D=AE=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/v2/pages/tetrio/record/40l/index.vue | 4 ++-- src/v2/pages/tetrio/record/schemas/data.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/v2/pages/tetrio/record/40l/index.vue b/src/v2/pages/tetrio/record/40l/index.vue index 3cef260..0958e5c 100644 --- a/src/v2/pages/tetrio/record/40l/index.vue +++ b/src/v2/pages/tetrio/record/40l/index.vue @@ -3,7 +3,7 @@ import { z } from 'zod' import Data from '../schemas/data' import Type from '../schemas/type' -const SprintData = Data.strict().readonly() +const SprintData = Data.extend({ time: z.string() }).strict().readonly() export type SprintData = z.infer; const data = SprintData.parse( @@ -112,4 +112,4 @@ const type = computed(() => { + \ No newline at end of file diff --git a/src/v2/pages/tetrio/record/schemas/data.ts b/src/v2/pages/tetrio/record/schemas/data.ts index a2fdc77..e9ab3a4 100644 --- a/src/v2/pages/tetrio/record/schemas/data.ts +++ b/src/v2/pages/tetrio/record/schemas/data.ts @@ -7,7 +7,7 @@ const Data = z.object({ type: z.nativeEnum(Type).nullable(), user: User.extend({ id: z.string() }), - time: z.string(), + replay_id: z.string(), rank: z.number().nullable(), personal_rank: z.number().nullable(),