Skip to content

Commit

Permalink
Update search request to use queryMap
Browse files Browse the repository at this point in the history
  • Loading branch information
nipunayf committed Mar 4, 2025
1 parent a21a0f0 commit 26fcd64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ public CompletableFuture<FlowModelAvailableNodesResponse> search(SearchRequest r
}

SearchCommand.Kind searchKind = SearchCommand.Kind.valueOf(request.searchKind());
SearchCommand command = SearchCommand.from(searchKind, module, request.position(), request.query());
SearchCommand command = SearchCommand.from(searchKind, module, request.position(), request.queryMap());
response.setCategories(command.execute());
} catch (Throwable e) {
response.setError(e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
* @param searchKind the kind of search to perform (corresponds to SearchCommand.Kind)
* @param filePath the path of the file (may be null for certain search kinds)
* @param position the line range of the current position (may be null for certain search kinds)
* @param query the map containing query parameters
* @param queryMap the map containing queryMap parameters
* @since 2.0.0
*/
public record SearchRequest(String searchKind, String filePath, LineRange position, Map<String, String> query) {
public record SearchRequest(String searchKind, String filePath, LineRange position, Map<String, String> queryMap) {

}

0 comments on commit 26fcd64

Please sign in to comment.