mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
fix(access_token): use fallback to connector_name if merchant_connector_id is not present (#4503)
This commit is contained in:
@ -5,7 +5,7 @@ use std::fmt::Display;
|
||||
/// Create a key for fetching the access token from redis
|
||||
pub fn create_access_token_key(
|
||||
merchant_id: impl Display,
|
||||
merchant_connector_id: impl Display,
|
||||
merchant_connector_id_or_connector_name: impl Display,
|
||||
) -> String {
|
||||
format!("access_token_{merchant_id}_{merchant_connector_id}")
|
||||
format!("access_token_{merchant_id}_{merchant_connector_id_or_connector_name}")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user