Fix: Chapter Nodes in LibraryUpdater

This commit is contained in:
Youwes09
2026-04-23 10:52:15 -05:00
parent 94b14fb7f6
commit 63a829ddca
2 changed files with 16 additions and 25 deletions
+4 -19
View File
@@ -1,5 +1,9 @@
Major Revisions: Major Revisions:
- Moku-Share to Easily Migrate/Share Manga (Investigate Usecase/Feasibility) - Moku-Share to Easily Migrate/Share Manga (Investigate Usecase/Feasibility)
- Moku-Share allows exporting of Manga
- Compressed Format (Storage)
- Import as Local-Source
- Takes existing Local-Source or Creates Own
Minor Revisions: Minor Revisions:
- Investigate feasibility of Multi-Page Screenshot (Reader) - Investigate feasibility of Multi-Page Screenshot (Reader)
@@ -22,25 +26,9 @@ In-Progress:
- Add Flathub Support (Pending Video) - Add Flathub Support (Pending Video)
- QOL Animations & Revamps - QOL Animations & Revamps
- Extensions QOL Animations
- Folders Slide
- Dropdown Formatting (Repositories, Etc)
- Extensions Revamps
- Fix Pill-Shaped Language Filter
- Fix ALL ALL EN Tag Issue
- Search QOL Animations
- Languages Dropdown Animations
- Search Revamps
- Custom Language Selector Modal
- Change Tab Selector to match Extensions & Library Folders (Design)
- Filter Genre should Filter Tags as well
- Tracking Revamp - Tracking Revamp
- Completely Revamp Tracking - Completely Revamp Tracking
- Fix ALl Folder Tabs (Works in Dev, not Prod) (TESTING)
- Extensions
- Library
- Search
- Fix Tracking Login - Fix Tracking Login
- Pasting OAuth URL is not User-Friendly, Look for Alternatives - Pasting OAuth URL is not User-Friendly, Look for Alternatives
@@ -53,6 +41,3 @@ In-Progress:
Testing Bugs: Testing Bugs:
- Reader Zoom does not work (Dropdown Slider, Value Adjustment); Goes to NaN
- Fix Library Folders (Uneven Padding + Bleed into Other Folders); Appears Constraints are Off
-
+9 -3
View File
@@ -64,7 +64,13 @@ export function startLibraryUpdate(callbacks: LibraryUpdaterCallbacks): () => vo
if (!jobsInfo.isRunning && seenWork) { if (!jobsInfo.isRunning && seenWork) {
const recent = await gql<{ const recent = await gql<{
chapters: { nodes: { mangaId: number; mangaTitle: string; thumbnailUrl: string; fetchedAt: string }[] } chapters: {
nodes: {
mangaId: number;
fetchedAt: string;
manga: { id: number; title: string; thumbnailUrl: string; inLibrary: boolean };
}[]
}
}>(GET_RECENTLY_UPDATED, {}).catch(() => ({ chapters: { nodes: [] } })); }>(GET_RECENTLY_UPDATED, {}).catch(() => ({ chapters: { nodes: [] } }));
if (cancelled) return; if (cancelled) return;
@@ -79,8 +85,8 @@ export function startLibraryUpdate(callbacks: LibraryUpdaterCallbacks): () => vo
} else { } else {
byManga.set(ch.mangaId, { byManga.set(ch.mangaId, {
mangaId: ch.mangaId, mangaId: ch.mangaId,
mangaTitle: ch.mangaTitle, mangaTitle: ch.manga.title,
thumbnailUrl: ch.thumbnailUrl, thumbnailUrl: ch.manga.thumbnailUrl,
newChapters: 1, newChapters: 1,
checkedAt: Date.now(), checkedAt: Date.now(),
}); });