fix(outgoingwebhookevents): Throw an error when outgoing webhook events env var not found (#3291)

This commit is contained in:
harsh-sharma-juspay
2024-01-09 15:03:47 +05:30
committed by GitHub
parent 5eb6711464
commit ee044a0be8

View File

@ -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(())
}
}