fix(routing): Fix kgraph to exclude PM auth during construction (#3019)

This commit is contained in:
Sarthak Soni
2023-11-30 15:41:59 +05:30
committed by GitHub
parent d30b58abb5
commit c6cb527f07

View File

@ -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(