fix: Refactor HardcoverSyncService to improve edition and page count (#2389)
* fix: Refactor HardcoverSyncService to improve edition and page count fetching logic. Always fetch edition and page info from Hardcover when a stored book ID is available. Update variable names for clarity and ensure fallback mechanisms are in place for missing data. * fix: Update key in HardcoverSyncServiceTest to reflect correct edition ID naming convention * feat: Enhance reading progress tracking in HardcoverSyncService by adding isFinished parameter to upsert methods. This allows for recording completion dates when a book is finished. --------- Co-authored-by: akiraslingshot <akiraslingshot@gmail.com>
This commit is contained in:
co-authored by
akiraslingshot
parent
7c3c0bba01
commit
67c12223ea
+1
-1
@@ -500,7 +500,7 @@ class HardcoverSyncServiceTest {
|
||||
Map<String, Object> bookResponse = new HashMap<>();
|
||||
Map<String, Object> bookData = new HashMap<>();
|
||||
Map<String, Object> book = new HashMap<>();
|
||||
book.put("default_edition_id", "88");
|
||||
book.put("default_physical_edition_id", "88");
|
||||
bookData.put("books", List.of(book));
|
||||
bookResponse.put("data", bookData);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user