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: update storage call to only fetch blocklist status from db (#10280)

Prajjwal Kumarc9545bae116c
diff --git a/crates/router/src/core/blocklist/utils.rs b/crates/router/src/core/blocklist/utils.rs
index c849133b72..c31fe62b2e 100644
--- a/crates/router/src/core/blocklist/utils.rs
+++ b/crates/router/src/core/blocklist/utils.rs
@@ -49,7 +49,7 @@ pub async fn toggle_blocklist_guard_for_merchant(
query: api_blocklist::ToggleBlocklistQuery,
) -> CustomResult<api_blocklist::ToggleBlocklistResponse, errors::ApiErrorResponse> {
let key = merchant_id.get_blocklist_guard_key();
- let maybe_guard = state.store.find_config_by_key(&key).await;
+ let maybe_guard = state.store.find_config_by_key_from_db(&key).await;
let new_config = configs::ConfigNew {
key: key.clone(),
config: query.status.to_string(),