Skip to content

Commit

Permalink
requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeZeDev committed Jan 3, 2025
1 parent ed808a0 commit d0405cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/src/engine/websites/Kakaopage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ export default class extends DecoratableMangaScraper {
}

public override async FetchChapters(manga: Manga): Promise<Chapter[]> {
let nextCursor : string | undefined = undefined;
let hasNextPage: boolean = false;
let nextCursor: string | undefined = undefined;
const chapterList: Chapter[] = [];

const gql = `
Expand Down Expand Up @@ -111,7 +112,7 @@ export default class extends DecoratableMangaScraper {
const chapters = edges.map(chapter => new Chapter(this, manga, chapter.node.single.productId.toString(), chapter.node.single.title.replace(manga.Title, '').trim()));
nextCursor = hasNextPage ? endCursor : undefined;
chapterList.push(...chapters);
} while (nextCursor);
} while (hasNextPage);

return chapterList;
}
Expand Down

0 comments on commit d0405cb

Please sign in to comment.