mirror of
https://github.com/movie-web/backend.git
synced 2025-09-13 12:23:25 +00:00
Round duration and watched for progress endpoints
This commit is contained in:
@@ -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(),
|
||||
|
Reference in New Issue
Block a user