From 9504c77ab10a17f55a97d03fa64d353c6c191c6f Mon Sep 17 00:00:00 2001 From: Maria Anchugova Date: Fri, 16 Aug 2024 19:14:35 +0700 Subject: [PATCH] fix (search): change network method for searching --- .../com/personalization/features/search/SearchManagerImpl.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/personalization-sdk/src/main/kotlin/com/personalization/features/search/SearchManagerImpl.kt b/personalization-sdk/src/main/kotlin/com/personalization/features/search/SearchManagerImpl.kt index c3a7752f..77622db0 100644 --- a/personalization-sdk/src/main/kotlin/com/personalization/features/search/SearchManagerImpl.kt +++ b/personalization-sdk/src/main/kotlin/com/personalization/features/search/SearchManagerImpl.kt @@ -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) @@ -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 {