Fix: regenerate improvements (#1981)

* chore: report error on cover regeneration fail

* refactor: use RxJS forkJoin instead of Promise.all

- Replace Promise-based approach with RxJS forkJoin for better consistency
- Remove console.log debug statement
- Improve error handling with proper RxJS operators

Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com>

* chore: cleanup

* chore: rework per development upstream

* chore: updating books on bulk cover regenerate

* chore: working

* chore: metadata regenerateCover pdate UI

* chore: review per comments

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
farfromrefuge
2025-12-25 10:09:33 -07:00
committed by GitHub
co-authored by farfromrefug copilot-swe-agent[bot]
parent 77e06b868e
commit f5e99d52c1
8 changed files with 84 additions and 18 deletions
+5
View File
@@ -57,6 +57,11 @@ export class AppComponent implements OnInit, OnDestroy {
this.bookService.handleBookUpdate(JSON.parse(msg.body))
)
);
this.subscriptions.push(
this.rxStompService.watch('/user/queue/books-cover-update').subscribe(msg =>
this.bookService.handleMultipleBookCoverPatches(JSON.parse(msg.body))
)
);
this.subscriptions.push(
this.rxStompService.watch('/user/queue/books-remove').subscribe(msg =>
this.bookService.handleRemovedBookIds(JSON.parse(msg.body))