fix: titles sync not working

This commit is contained in:
2025-12-19 00:27:38 -05:00
parent 0b237d542b
commit cd19f39005
2 changed files with 5 additions and 11 deletions

View File

@@ -129,15 +129,11 @@ app.openapi(route, async (c) => {
let hasNextPage = true;
do {
const stub = env.ANILIST_DO.getByName(user.name!);
const { mediaList, pageInfo } = await stub
.getTitles(
user.name!,
currentPage++,
["CURRENT", "PLANNING", "PAUSED", "REPEATING"],
aniListToken,
)
.then((data) => data!);
const { mediaList, pageInfo } = await getWatchingTitles(
user.name!,
currentPage++,
aniListToken,
).then((data) => data!);
if (!mediaList) {
break;
}

View File

@@ -12,8 +12,6 @@ import {
} from "~/libs/tasks/queueTask";
import { maybeUpdateLastConnectedAt } from "~/middleware/maybeUpdateLastConnectedAt";
import { checkUpcomingTitles } from "./controllers/internal/upcoming-titles";
export const app = new OpenAPIHono<{ Bindings: Env }>();
app.use(maybeUpdateLastConnectedAt);