Skip to content

Commit

Permalink
MODTLR-79 Convert UUID to string
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksandrVidinieiev committed Nov 18, 2024
1 parent 61b7e73 commit e13278d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ private Map<String, ItemContext> buildItemContexts(Collection<SearchItem> reques
private Collection<ItemContext> buildItemContexts(String tenantId, Collection<String> itemIds,
Map<String, Collection<Location>> locationsByTenant, Map<String, SearchInstance> itemIdToInstance) {

log.info("buildItemContexts:: building item contexts for {} items in tenant {}", itemIds.size(), tenantId);
return executionService.executeSystemUserScoped(tenantId,
() -> buildItemContexts(itemIds, itemIdToInstance, locationsByTenant.get(tenantId)));
}
Expand Down Expand Up @@ -306,6 +307,7 @@ private Collection<ItemContext> buildItemContexts(Collection<String> itemIds,
SearchInstance instance = itemIdToInstance.get(item.getId());
Location location = locationsById.get(item.getEffectiveLocationId());
ServicePoint primaryServicePoint = Optional.ofNullable(location.getPrimaryServicePoint())
.map(UUID::toString)
.map(servicePointsById::get)
.orElse(null);
SearchHolding holding = instance.getHoldings()
Expand Down

0 comments on commit e13278d

Please sign in to comment.