mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	fix(router): fix attempt status for techincal failures in psync flow (#2252)
This commit is contained in:
		 Sai Harsha Vardhan
					Sai Harsha Vardhan
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							aa8d0ddda1
						
					
				
				
					commit
					2b8bd03a72
				
			| @ -1033,3 +1033,15 @@ pub async fn get_profile_id_from_business_details( | ||||
|         }, | ||||
|     } | ||||
| } | ||||
|  | ||||
| #[inline] | ||||
| pub fn get_flow_name<F>() -> RouterResult<String> { | ||||
|     Ok(std::any::type_name::<F>() | ||||
|         .to_string() | ||||
|         .rsplit("::") | ||||
|         .next() | ||||
|         .ok_or(errors::ApiErrorResponse::InternalServerError) | ||||
|         .into_report() | ||||
|         .attach_printable("Flow stringify failed")? | ||||
|         .to_string()) | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user