Skip to content

Commit

Permalink
Fix listable search request
Browse files Browse the repository at this point in the history
Use searchText instead of searchTerm in in method signature to be
consistent with other search methods.

Fixes listable search by passing in the search terms correctly.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
  • Loading branch information
PVince81 committed Dec 22, 2020
1 parent de1c54e commit ac44202
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/conversationsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ const checkTalkVersionHash = function(response) {

/**
* Fetch listed conversations
* @param {string} searchTerm The string that will be used in the search query.
* @param {string} searchText The string that will be used in the search query.
* @param {object} options options
*/
const searchListedConversations = async function(searchTerm, options) {
const searchListedConversations = async function({ searchText }, options) {
return axios.get(generateOcsUrl('apps/spreed/api/v3', 2) + 'listed-room', Object.assign(options, {
params: {
searchTerm,
searchTerm: searchText,
},
}))
}
Expand Down

0 comments on commit ac44202

Please sign in to comment.