mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-31 01:57:45 +08:00
fix(outgoingwebhookevents): Throw an error when outgoing webhook events env var not found (#3291)
This commit is contained in:
committed by
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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user