diff --git a/src/controllers/auth/anilist/index.ts b/src/controllers/auth/anilist/index.ts index 4ab0856..bbdadfb 100644 --- a/src/controllers/auth/anilist/index.ts +++ b/src/controllers/auth/anilist/index.ts @@ -129,11 +129,15 @@ app.openapi(route, async (c) => { let hasNextPage = true; do { - const { mediaList, pageInfo } = await getWatchingTitles( - user.name!, - currentPage++, - aniListToken, - ); + 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!); if (!mediaList) { break; }