fix: cleanup

This commit is contained in:
2026-06-04 06:42:27 -05:00
parent f989b144cf
commit 654cfec147
52 changed files with 290 additions and 540 deletions
+14
View File
@@ -0,0 +1,14 @@
import { booksApi } from "@/api/books";
import { getReadingProgress } from "@/api/reader";
import type { ReadingProgress } from "@/types/reader";
export async function loadEbookWithProgress(bookId: number): Promise<{
progressData: ReadingProgress | null;
blob: Blob;
}> {
const [progressData, blob] = await Promise.all([
getReadingProgress(bookId).catch(() => null),
booksApi.getEbookFile(bookId),
]);
return { progressData, blob };
}