Skip to content

Commit

Permalink
renamed query param to q in descriptors search
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-lg committed Aug 16, 2024
1 parent 62c3963 commit 63ab45f
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,9 @@ public PagingResponse<DescriptorGroup> listDescriptorGroups(

Pageable page = searchRequest.getPage() == null ? new PagingRequest() : searchRequest.getPage();
String query =
searchRequest.getQuery() != null
? Strings.emptyToNull(CharMatcher.whitespace().trimFrom(searchRequest.getQuery()))
: searchRequest.getQuery();
searchRequest.getQ() != null
? Strings.emptyToNull(CharMatcher.whitespace().trimFrom(searchRequest.getQ()))
: searchRequest.getQ();

DescriptorGroupParams params =
DescriptorGroupParams.builder()
Expand Down Expand Up @@ -363,9 +363,9 @@ public PagingResponse<Descriptor> listDescriptors(DescriptorSearchRequest search
private DescriptorParams createDescriptorParams(DescriptorSearchRequest searchRequest) {
Pageable page = searchRequest.getPage() == null ? new PagingRequest() : searchRequest.getPage();
String query =
searchRequest.getQuery() != null
? Strings.emptyToNull(CharMatcher.whitespace().trimFrom(searchRequest.getQuery()))
: searchRequest.getQuery();
searchRequest.getQ() != null
? Strings.emptyToNull(CharMatcher.whitespace().trimFrom(searchRequest.getQ()))
: searchRequest.getQ();

return DescriptorParams.builder()
.query(query)
Expand Down

0 comments on commit 63ab45f

Please sign in to comment.