fix(reader): add fetchFreshBookDetail method to ensure up-to-date reading position across devices (#358)

* fix(reader): add fetchFreshBookDetail method to ensure up-to-date reading position across devices

* test(audiobook): enhance tests to verify queryClient interactions for progress updates

* fix(audiobook): include audiobookProgress and fileProgress in progress payload
This commit is contained in:
brios
2026-04-22 17:27:06 -04:00
committed by Zach Yale
parent cf7999044f
commit 4527d43e84
9 changed files with 76 additions and 23 deletions
@@ -243,7 +243,7 @@ export class CbxReaderComponent implements OnInit, OnDestroy {
this.nextBookInSeries = null;
this.currentBook = null;
return from(this.bookService.ensureBookDetail(this.bookId, false)).pipe(
return from(this.bookService.fetchFreshBookDetail(this.bookId, false)).pipe(
switchMap((book) => {
// Use alternative bookType from query param if provided, otherwise use primary
const resolvedBookType = (this.altBookType as BookType | undefined) ?? book.primaryFile?.bookType;