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:
@@ -230,7 +230,7 @@ export class EbookReaderComponent implements OnInit, OnDestroy {
|
||||
this.bookId = +this.route.snapshot.paramMap.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) => {
|
||||
this.book = book;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user