fix: currentPage not incrementing when loading watched titles

This commit is contained in:
2025-12-06 09:11:32 -05:00
parent 236a6ba165
commit 44dca65a96

View File

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