Skip to content

Commit

Permalink
[CIRC-1988-1]-Added Fix (#1416)
Browse files Browse the repository at this point in the history
  • Loading branch information
SinghAdes authored Jan 1, 2024
1 parent ee76b58 commit 3c8ca4f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ public CompletableFuture<Result<Item>> fetchByBarcode(String barcode) {
return fetchItemByBarcode(barcode, createItemFinder())
.thenComposeAsync(itemResult -> itemResult.after(when(item -> ofAsync(item::isNotFound),
item -> fetchItemByBarcode(barcode, createCirculationItemFinder())
.thenApply(r -> r.mapFailure(failure -> Result.succeeded(item)))
, item -> completedFuture(itemResult))))
.thenComposeAsync(this::fetchItemRelatedRecords);
}
Expand Down

0 comments on commit 3c8ca4f

Please sign in to comment.