Skip to content

Commit

Permalink
CIRCSTORE-521 refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-barannyk committed Aug 21, 2024
1 parent de0f3c6 commit d6b9f8d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main/java/org/folio/rest/impl/RequestsBatchAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,8 @@ public void postRequestStorageBatchRequests(
}

log.info("postRequestStorageBatchRequests:: requests: {}", entity.getRequests());
RequestBatchResourceService requestBatchUpdateService = new RequestBatchResourceService(
context, okapiHeaders);


requestBatchUpdateService.executeRequestBatchUpdate(entity.getRequests(), updateResult -> {
new RequestBatchResourceService(context, okapiHeaders)
.executeRequestBatchUpdate(entity.getRequests(), updateResult -> {
// Successfully updated
if (updateResult.succeeded()) {
log.debug("Batch update executed successfully");
Expand Down

0 comments on commit d6b9f8d

Please sign in to comment.