Skip to content

Commit

Permalink
fix(merchant_connector_account): use appropriate key when redacting (#…
Browse files Browse the repository at this point in the history
…2363)

Co-authored-by: ItsMeShashank <[email protected]>
  • Loading branch information
Narayanbhat166 and vspecky authored Sep 25, 2023
1 parent cefa291 commit 54645cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/router/src/db/merchant_connector_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ impl MerchantConnectorAccountInterface for Store {
merchant_connector_account: storage::MerchantConnectorAccountUpdateInternal,
key_store: &domain::MerchantKeyStore,
) -> CustomResult<domain::MerchantConnectorAccount, errors::StorageError> {
let _merchant_id = this.merchant_id.clone();
let _connector_name = this.connector_name.clone();
let _profile_id = this
.profile_id
.clone()
Expand Down Expand Up @@ -409,7 +409,7 @@ impl MerchantConnectorAccountInterface for Store {
{
super::cache::publish_and_redact(
self,
cache::CacheKind::Accounts(format!("{}_{}", _merchant_id, _profile_id).into()),
cache::CacheKind::Accounts(format!("{}_{}", _profile_id, _connector_name).into()),
update_call,
)
.await
Expand Down

0 comments on commit 54645cd

Please sign in to comment.