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

fix(router): cache invalidation in merchant_connector_update flow for v2 (#5918)

Sai Harsha Vardhan66de680e6fca
diff --git a/crates/router/src/db/merchant_connector_account.rs b/crates/router/src/db/merchant_connector_account.rs
index 40e5357249..b51e7afb34 100644
--- a/crates/router/src/db/merchant_connector_account.rs
+++ b/crates/router/src/db/merchant_connector_account.rs
@@ -785,12 +785,7 @@ impl MerchantConnectorAccountInterface for Store {
format!("{}_{}", _profile_id.get_string_repr(), _connector_name).into(),
),
cache::CacheKind::Accounts(
- format!(
- "{}_{}",
- _merchant_id.get_string_repr(),
- _merchant_connector_id.get_string_repr()
- )
- .into(),
+ format!("{}", _merchant_connector_id.get_string_repr()).into(),
),
cache::CacheKind::CGraph(
format!(