Skip to content

Commit

Permalink
Merge pull request apache#167 from isururanawaka/mysql_conversion
Browse files Browse the repository at this point in the history
Fixing shared_by
  • Loading branch information
isururanawaka authored Sep 12, 2022
2 parents 39dfbbd + ae10895 commit d8bd857
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 d8bd857

Please sign in to comment.