fix: currentPage not incrementing when loading watched titles
This commit is contained in:
@@ -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!);
|
||||||
|
const { mediaList, pageInfo } = await stub
|
||||||
|
.getTitles(
|
||||||
user.name!,
|
user.name!,
|
||||||
currentPage++,
|
currentPage++,
|
||||||
|
["CURRENT", "PLANNING", "PAUSED", "REPEATING"],
|
||||||
aniListToken,
|
aniListToken,
|
||||||
);
|
)
|
||||||
|
.then((data) => data!);
|
||||||
if (!mediaList) {
|
if (!mediaList) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user