From ed6e028c2823804b1257b18eaab91c17172f294d Mon Sep 17 00:00:00 2001 From: Maksat-Galymzhan Date: Wed, 10 Jul 2024 15:24:23 +0500 Subject: [PATCH] CIRC-2117: draft --- .../circulation/infrastructure/storage/SearchRepository.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/folio/circulation/infrastructure/storage/SearchRepository.java b/src/main/java/org/folio/circulation/infrastructure/storage/SearchRepository.java index a999c2158d..04bc2aa577 100644 --- a/src/main/java/org/folio/circulation/infrastructure/storage/SearchRepository.java +++ b/src/main/java/org/folio/circulation/infrastructure/storage/SearchRepository.java @@ -2,6 +2,7 @@ import static org.folio.circulation.support.StringUtil.urlEncode; import static org.folio.circulation.support.results.Result.failed; +import static org.folio.circulation.support.results.Result.succeeded; import static org.folio.circulation.support.results.ResultBinding.flatMapResult; import static org.folio.circulation.support.results.ResultBinding.mapResult; @@ -63,8 +64,7 @@ private Result> mapResponseToInstances(Response private CompletableFuture> updateItemDetails(SearchInstance searchInstance) { log.debug("updateItemDetails:: searchInstance {}", () -> searchInstance); if (searchInstance == null) { - return CompletableFuture.completedFuture(failed(new BadRequestFailure( - "Search result is empty"))); + return CompletableFuture.completedFuture(succeeded(null)); } Map> itemsByTenant = searchInstance.getItems()