Skip to content

Commit

Permalink
MCBFF-38: fix search query
Browse files Browse the repository at this point in the history
  • Loading branch information
imerabishvili committed Jan 24, 2025
1 parent 131db36 commit ae4a787
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public class SearchServiceImpl implements SearchService {
@Override
public SearchInstance findInstanceByItemId(String itemId) {
log.info("findInstanceByItemId:: itemId {}", itemId);
String query = String.format("items.id==%s&expandAll=true", itemId);
String query = "items.id==" + itemId;
SearchInstances searchResult = searchClient.findInstances(query, true);
if (CollectionUtils.isEmpty(searchResult.getInstances())) {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void searchInstanceByItemId() {
SearchInstances mockSearchResponse = new SearchInstances()
.instances(List.of(instance))
.totalRecords(1);
String query = "items.id==" + itemId + "&expandAll=true";
String query = "items.id==" + itemId;
when(searchClient.findInstances(query, true))
.thenReturn(mockSearchResponse);

Expand Down

0 comments on commit ae4a787

Please sign in to comment.