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:
@@ -126,7 +126,7 @@ export class PdfReaderComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||
this.bookId = +params.get('bookId')!;
|
||||
this.altBookType = this.route.snapshot.queryParamMap.get('bookType') ?? undefined;
|
||||
|
||||
return from(this.bookService.ensureBookDetail(this.bookId, false)).pipe(
|
||||
return from(this.bookService.fetchFreshBookDetail(this.bookId, false)).pipe(
|
||||
switchMap((book) => {
|
||||
if (this.altBookType) {
|
||||
const altFile = book.alternativeFormats?.find(f => f.bookType === this.altBookType);
|
||||
|
||||
Reference in New Issue
Block a user