Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

refactor(euclid): make the disabled node's relation as negative (#5701)

Prajjwal Kumare904d0fa0dc0
diff --git a/crates/router/src/core/payment_methods/utils.rs b/crates/router/src/core/payment_methods/utils.rs
index 0aad719089..1afdaaab06 100644
--- a/crates/router/src/core/payment_methods/utils.rs
+++ b/crates/router/src/core/payment_methods/utils.rs
@@ -590,7 +590,7 @@ fn compile_accepted_countries_for_mca(
.map_err(KgraphError::GraphConstructionError)?;
agg_nodes.push((
pm_object_country_value_node,
- cgraph::Relation::Positive,
+ cgraph::Relation::Negative,
cgraph::Strength::Weak,
));
}
@@ -712,7 +712,7 @@ fn compile_accepted_currency_for_mca(
.map_err(KgraphError::GraphConstructionError)?;
agg_nodes.push((
pm_object_currency_value_node,
- cgraph::Relation::Positive,
+ cgraph::Relation::Negative,
cgraph::Strength::Weak,
));
}