From 996c3ddcba4ae7ae86469a60efbdb7c68ea94da6 Mon Sep 17 00:00:00 2001 From: Mani Chandra Dulam Date: Mon, 4 Dec 2023 13:29:06 +0530 Subject: [PATCH] refactor: use merchant_id from user_role instead of request in switch merchant api --- crates/router/src/core/user.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/router/src/core/user.rs b/crates/router/src/core/user.rs index 629ec7c0f8a9..8d9323623690 100644 --- a/crates/router/src/core/user.rs +++ b/crates/router/src/core/user.rs @@ -393,7 +393,7 @@ pub async fn switch_merchant_id( user_id: user.get_user_id().to_string(), verification_days_left: None, user_role: user_role.role_id, - merchant_id: request.merchant_id, + merchant_id: user_role.merchant_id, }, )) }