mirror of
https://github.com/sussy-code/backend.git
synced 2026-04-18 15:32:03 +00:00
Round duration and watched for progress endpoints
This commit is contained in:
parent
fd9b61061c
commit
e2b8f123b3
1 changed files with 2 additions and 2 deletions
|
|
@ -12,8 +12,8 @@ import { z } from 'zod';
|
|||
const progressItemSchema = z.object({
|
||||
meta: progressMetaSchema,
|
||||
tmdbId: z.string(),
|
||||
duration: z.number(),
|
||||
watched: z.number(),
|
||||
duration: z.number().transform((n) => Math.round(n)),
|
||||
watched: z.number().transform((n) => Math.round(n)),
|
||||
seasonId: z.string().optional(),
|
||||
episodeId: z.string().optional(),
|
||||
seasonNumber: z.number().optional(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue