Skip to content

Commit

Permalink
fix(search3): add support for query "" [skip ci] (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
vnghia authored Apr 14, 2024
1 parent 4b882c8 commit 9716e76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/open_subsonic/searching/search3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ pub async fn search3_handler(

let search_query: SearchQueryParams = (&req.params).into();

let search_result = if search_query.query.is_empty() {
let search_result = if search_query.query.is_empty() || search_query.query == "\"\"" {
sync(&database.pool, req.user_id, &req.params.music_folder_ids, search_query).await
} else {
full_text_search(&database.pool, req.user_id, &req.params.music_folder_ids, search_query)
Expand Down

0 comments on commit 9716e76

Please sign in to comment.