mirror of
https://github.com/ld3z/new-manga.git
synced 2026-11-09 20:33:44 -07:00
Fix errors maybe?
This commit is contained in:
parent
22c3e665e8
commit
66e9dd2a06
3 changed files with 21 additions and 4 deletions
|
|
@ -294,7 +294,8 @@ export async function getChaptersForSlugs(
|
|||
});
|
||||
|
||||
// Add progress tracking
|
||||
console.log(`Cache hits: ${cachedChapters.length} chapters from ${slugs.length - slugsToFetch.length} comics`);
|
||||
const cachedSlugs = new Set(cachedChapters.map(c => c.md_comics.slug));
|
||||
console.log(`Cache hits: ${cachedChapters.length} chapters from ${cachedSlugs.size} comics`);
|
||||
console.log(`Fetching ${slugsToFetch.length} comics from API`);
|
||||
|
||||
const fetchPromises = slugsToFetch.map(async (slug) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue