mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
refactor: introduce a domain type for profile ID (#5687)
This commit is contained in:
@ -114,7 +114,7 @@ pub async fn generate_jwt_auth_token_with_custom_role_attributes(
|
||||
merchant_id: id_type::MerchantId,
|
||||
org_id: id_type::OrganizationId,
|
||||
role_id: String,
|
||||
profile_id: Option<String>,
|
||||
profile_id: Option<id_type::ProfileId>,
|
||||
) -> UserResult<Secret<String>> {
|
||||
let token = AuthToken::new_token(
|
||||
user.get_user_id().to_string(),
|
||||
|
||||
@ -182,7 +182,7 @@ pub async fn update_v1_and_v2_user_roles_in_db(
|
||||
user_id: &str,
|
||||
org_id: &id_type::OrganizationId,
|
||||
merchant_id: &id_type::MerchantId,
|
||||
profile_id: Option<&String>,
|
||||
profile_id: Option<&id_type::ProfileId>,
|
||||
update: UserRoleUpdate,
|
||||
) -> (
|
||||
Result<UserRole, Report<StorageError>>,
|
||||
|
||||
Reference in New Issue
Block a user