Fix errors maybe?

This commit is contained in:
ld3zian 2025-02-04 19:29:03 -07:00
parent 22c3e665e8
commit 66e9dd2a06
3 changed files with 21 additions and 4 deletions

View file

@ -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) => {