mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 21:37:41 +08:00
refactor(merchant_id): create domain type for merchant_id (#5408)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com>
This commit is contained in:
@ -21,7 +21,7 @@ pub async fn retrieve_poll_status(
|
||||
.attach_printable("Failed to get redis connection")?;
|
||||
let request_poll_id = req.poll_id;
|
||||
// prepend 'poll_{merchant_id}_' to restrict access to only fetching Poll IDs, as this is a freely passed string in the request
|
||||
let poll_id = super::utils::get_poll_id(merchant_account.merchant_id, request_poll_id.clone());
|
||||
let poll_id = super::utils::get_poll_id(merchant_account.get_id(), request_poll_id.clone());
|
||||
let redis_value = redis_conn
|
||||
.get_key::<Option<String>>(poll_id.as_str())
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user