From e2b8f123b377146509b74d4d49a87e611966506a Mon Sep 17 00:00:00 2001 From: William Oldham Date: Sun, 19 Nov 2023 19:41:59 +0000 Subject: [PATCH] Round duration and watched for progress endpoints --- src/routes/users/progress.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/users/progress.ts b/src/routes/users/progress.ts index ed8e651..7575248 100644 --- a/src/routes/users/progress.ts +++ b/src/routes/users/progress.ts @@ -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(),