mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +08:00
feat(opensearch): refactoring (#4244)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com>
This commit is contained in:
@ -614,9 +614,9 @@ pub mod routes {
|
||||
json_payload.into_inner(),
|
||||
|state, auth: AuthenticationData, req, _| async move {
|
||||
analytics::search::msearch_results(
|
||||
&state.opensearch_client,
|
||||
req,
|
||||
&auth.merchant_account.merchant_id,
|
||||
state.conf.opensearch.clone(),
|
||||
)
|
||||
.await
|
||||
.map(ApplicationResponse::Json)
|
||||
@ -645,9 +645,9 @@ pub mod routes {
|
||||
indexed_req,
|
||||
|state, auth: AuthenticationData, req, _| async move {
|
||||
analytics::search::search_results(
|
||||
&state.opensearch_client,
|
||||
req,
|
||||
&auth.merchant_account.merchant_id,
|
||||
state.conf.opensearch.clone(),
|
||||
)
|
||||
.await
|
||||
.map(ApplicationResponse::Json)
|
||||
|
||||
Reference in New Issue
Block a user