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);