Skip to content

Commit

Permalink
Merge pull request #54 from rees46/fix/search
Browse files Browse the repository at this point in the history
Fix: search
  • Loading branch information
TorinAsakura authored Aug 16, 2024
2 parents 2555e9a + 9504c77 commit 6a192b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ internal class SearchManagerImpl @Inject constructor(
onSearchBlank: (SearchBlankResponse) -> Unit,
onError: (Int, String?) -> Unit
) {
networkManager.post(BLANK_SEARCH_REQUEST, Params().build(), object : OnApiCallbackListener() {
networkManager.get(BLANK_SEARCH_REQUEST, Params().build(), object : OnApiCallbackListener() {
override fun onSuccess(response: JSONObject?) {
response?.let {
val searchBlankResponse = Gson().fromJson(it.toString(), SearchBlankResponse::class.java)
Expand All @@ -88,7 +88,7 @@ internal class SearchManagerImpl @Inject constructor(
.put(TYPE_PARAMETER, type.value)
.put(QUERY_PARAMETER, query)

networkManager.post(SEARCH_REQUEST, params.build(), listener)
networkManager.get(SEARCH_REQUEST, params.build(), listener)
}

companion object {
Expand Down

0 comments on commit 6a192b1

Please sign in to comment.