mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	fix(outgoingwebhookevents): Throw an error when outgoing webhook events env var not found (#3291)
This commit is contained in:
		 harsh-sharma-juspay
					harsh-sharma-juspay
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							5eb6711464
						
					
				
				
					commit
					ee044a0be8
				
			| @ -126,6 +126,15 @@ impl KafkaSettings { | ||||
|             )) | ||||
|         })?; | ||||
|  | ||||
|         common_utils::fp_utils::when( | ||||
|             self.outgoing_webhook_logs_topic.is_default_or_empty(), | ||||
|             || { | ||||
|                 Err(ApplicationError::InvalidConfigurationValueError( | ||||
|                     "Kafka Outgoing Webhook Logs topic must not be empty".into(), | ||||
|                 )) | ||||
|             }, | ||||
|         )?; | ||||
|  | ||||
|         Ok(()) | ||||
|     } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user