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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user