refactor: remove HonoRequest from updateWatchStatus

This commit is contained in:
2025-12-17 07:51:19 -05:00
parent c527a6eac5
commit 3c5685dbdb
2 changed files with 2 additions and 3 deletions

View File

@@ -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) {

View File

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