From 3c5685dbdba01c817a43b1c1ee473d2c33c48c93 Mon Sep 17 00:00:00 2001 From: Rushil Perera Date: Wed, 17 Dec 2025 07:51:19 -0500 Subject: [PATCH] refactor: remove HonoRequest from updateWatchStatus --- src/controllers/episodes/markEpisodeAsWatched/index.ts | 2 +- src/controllers/watch-status/index.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/controllers/episodes/markEpisodeAsWatched/index.ts b/src/controllers/episodes/markEpisodeAsWatched/index.ts index 6bdd9be..ecf19ac 100644 --- a/src/controllers/episodes/markEpisodeAsWatched/index.ts +++ b/src/controllers/episodes/markEpisodeAsWatched/index.ts @@ -84,7 +84,7 @@ app.openapi(route, async (c) => { isComplete, ); if (isComplete) { - await updateWatchStatus(c.req, deviceId, aniListId, "COMPLETED"); + await updateWatchStatus(deviceId, aniListId, "COMPLETED"); } if (!user) { diff --git a/src/controllers/watch-status/index.ts b/src/controllers/watch-status/index.ts index 6b313dd..f24dbb3 100644 --- a/src/controllers/watch-status/index.ts +++ b/src/controllers/watch-status/index.ts @@ -64,7 +64,6 @@ const route = createRoute({ }); export async function updateWatchStatus( - req: HonoRequest, deviceId: string, titleId: number, watchStatus: WatchStatus | null, @@ -99,7 +98,7 @@ app.openapi(route, async (c) => { if (!isRetrying) { try { - await updateWatchStatus(c.req, deviceId, titleId, watchStatus); + await updateWatchStatus(deviceId, titleId, watchStatus); } catch (error) { console.error("Error setting watch status"); console.error(error);