mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-04 05:59:48 +08:00 
			
		
		
		
	feat(invite_multiple): Set status of user as InvitationSent if email feature flag is enabled (#3757)
				
					
				
			This commit is contained in:
		@ -708,7 +708,13 @@ async fn handle_existing_user_invitation(
 | 
				
			|||||||
            merchant_id: user_from_token.merchant_id.clone(),
 | 
					            merchant_id: user_from_token.merchant_id.clone(),
 | 
				
			||||||
            role_id: request.role_id.clone(),
 | 
					            role_id: request.role_id.clone(),
 | 
				
			||||||
            org_id: user_from_token.org_id.clone(),
 | 
					            org_id: user_from_token.org_id.clone(),
 | 
				
			||||||
            status: UserStatus::Active,
 | 
					            status: {
 | 
				
			||||||
 | 
					                if cfg!(feature = "email") {
 | 
				
			||||||
 | 
					                    UserStatus::InvitationSent
 | 
				
			||||||
 | 
					                } else {
 | 
				
			||||||
 | 
					                    UserStatus::Active
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
            created_by: user_from_token.user_id.clone(),
 | 
					            created_by: user_from_token.user_id.clone(),
 | 
				
			||||||
            last_modified_by: user_from_token.user_id.clone(),
 | 
					            last_modified_by: user_from_token.user_id.clone(),
 | 
				
			||||||
            created_at: now,
 | 
					            created_at: now,
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user