Skip to content

Commit

Permalink
Fixing shared_by
Browse files Browse the repository at this point in the history
  • Loading branch information
isururanawaka committed Sep 12, 2022
1 parent 47f5248 commit ae10895
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,9 @@ public void searchResource(ResourceSearchRequest

for (ResourceSearchQuery searchQuery : resourceSearchQueries) {

if(!searchQuery.getField().equals("shared_with")) {
if(searchQuery.getField().equalsIgnoreCase("sharedBy")) {
SearchCriteria searchCriteria = SearchCriteria.newBuilder()
.setSearchField(EntitySearchField.valueOf(searchQuery.getField()))
.setSearchField(EntitySearchField.SHARED_BY)
.setCondition(SearchCondition.valueOf(searchQuery.getOptions()))
.setValue(searchQuery.getValue()).build();

Expand Down

0 comments on commit ae10895

Please sign in to comment.