mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	refactor(router): add api_version and make profile_id mandatory in mca v2 (#5602)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
		 Sai Harsha Vardhan
					Sai Harsha Vardhan
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							19a9180925
						
					
				
				
					commit
					56791c2743
				
			| @ -413,13 +413,13 @@ pub async fn validate_connectors_in_routing_config( | ||||
|         })?; | ||||
|     let name_mca_id_set = all_mcas | ||||
|         .iter() | ||||
|         .filter(|mca| mca.profile_id.as_deref() == Some(profile_id)) | ||||
|         .filter(|mca| mca.profile_id == profile_id) | ||||
|         .map(|mca| (&mca.connector_name, mca.get_id())) | ||||
|         .collect::<FxHashSet<_>>(); | ||||
|  | ||||
|     let name_set = all_mcas | ||||
|         .iter() | ||||
|         .filter(|mca| mca.profile_id.as_deref() == Some(profile_id)) | ||||
|         .filter(|mca| mca.profile_id == profile_id) | ||||
|         .map(|mca| &mca.connector_name) | ||||
|         .collect::<FxHashSet<_>>(); | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user