Skip to content

Commit

Permalink
🐛 修正 V2 TETR.IO record 数据模型
Browse files Browse the repository at this point in the history
  • Loading branch information
shoucandanghehe committed Aug 4, 2024
1 parent 3c45e63 commit 25b3079
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/v2/pages/tetrio/record/40l/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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<typeof SprintData>;
const data = SprintData.parse(
Expand Down Expand Up @@ -112,4 +112,4 @@ const type = computed(() => {

<style lang="scss">
@import "@/v2/styles/main";
</style>
</style>
2 changes: 1 addition & 1 deletion src/v2/pages/tetrio/record/schemas/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 25b3079

Please sign in to comment.