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 3ceda7a commit 3c45e63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/v2/pages/tetrio/record/schemas/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Type from './type'
const Data = z.object({
type: z.nativeEnum(Type).nullable(),

user: User.extend({ id: z.string() }).omit({ avatar: true }),
user: User.extend({ id: z.string() }),
time: z.string(),
replay_id: z.string(),
rank: z.number().nullable(),
Expand All @@ -17,4 +17,4 @@ const Data = z.object({
play_at: z.coerce.date()
})

export default Data
export default Data

0 comments on commit 3c45e63

Please sign in to comment.