mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +08:00
fix(routing): Fix kgraph to exclude PM auth during construction (#3019)
This commit is contained in:
@ -523,8 +523,10 @@ pub async fn refresh_kgraph_cache(
|
||||
.await
|
||||
.change_context(errors::RoutingError::KgraphCacheRefreshFailed)?;
|
||||
|
||||
merchant_connector_accounts
|
||||
.retain(|mca| mca.connector_type != storage_enums::ConnectorType::PaymentVas);
|
||||
merchant_connector_accounts.retain(|mca| {
|
||||
mca.connector_type != storage_enums::ConnectorType::PaymentVas
|
||||
&& mca.connector_type != storage_enums::ConnectorType::PaymentMethodAuth
|
||||
});
|
||||
|
||||
#[cfg(feature = "business_profile_routing")]
|
||||
let merchant_connector_accounts = payments_oss::helpers::filter_mca_based_on_business_profile(
|
||||
|
||||
Reference in New Issue
Block a user