Skip to content

Commit

Permalink
refactor: use merchant_id from user_role instead of request in switch…
Browse files Browse the repository at this point in the history
… merchant api
  • Loading branch information
ThisIsMani committed Dec 4, 2023
1 parent 48a9393 commit 996c3dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/router/src/core/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
))
}
Expand Down

0 comments on commit 996c3dd

Please sign in to comment.