From 37b4f0bf2b60fb918ccf369e404f0188c558dfe4 Mon Sep 17 00:00:00 2001 From: Rushil Perera Date: Thu, 18 Dec 2025 08:49:50 -0500 Subject: [PATCH] chore: remove no longer needed isRetrying boolean --- src/controllers/watch-status/index.ts | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/src/controllers/watch-status/index.ts b/src/controllers/watch-status/index.ts index eeb48ad..8c87f42 100644 --- a/src/controllers/watch-status/index.ts +++ b/src/controllers/watch-status/index.ts @@ -22,7 +22,6 @@ const UpdateWatchStatusRequest = z.object({ deviceId: z.string(), watchStatus: WatchStatus.nullable(), titleId: AniListIdSchema, - isRetrying: z.boolean().optional().default(false), }); const route = createRoute({ @@ -81,12 +80,8 @@ export async function updateWatchStatus( } app.openapi(route, async (c) => { - const { - deviceId, - watchStatus, - titleId, - isRetrying = false, - } = await c.req.json(); + const { deviceId, watchStatus, titleId } = + await c.req.json(); // Check if we should use mock data const { useMockData } = await import("~/libs/useMockData"); if (useMockData()) { @@ -94,14 +89,12 @@ app.openapi(route, async (c) => { return c.json(SuccessResponse, { status: 200 }); } - if (!isRetrying) { - try { - await updateWatchStatus(deviceId, titleId, watchStatus); - } catch (error) { - console.error("Error setting watch status"); - console.error(error); - return c.json(ErrorResponse, { status: 500 }); - } + try { + await updateWatchStatus(deviceId, titleId, watchStatus); + } catch (error) { + console.error("Error setting watch status"); + console.error(error); + return c.json(ErrorResponse, { status: 500 }); } const aniListToken = c.req.header("X-AniList-Token");