mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-01 02:57:02 +08:00 
			
		
		
		
	refactor(analytics): default config for forex_enabled (#7695)
This commit is contained in:
		| @ -1010,25 +1010,28 @@ impl AnalyticsProvider { | |||||||
| } | } | ||||||
|  |  | ||||||
| #[derive(Clone, Debug, serde::Deserialize)] | #[derive(Clone, Debug, serde::Deserialize)] | ||||||
| #[serde(tag = "source")] | #[serde(tag = "source", rename_all = "lowercase")] | ||||||
| #[serde(rename_all = "lowercase")] |  | ||||||
| pub enum AnalyticsConfig { | pub enum AnalyticsConfig { | ||||||
|     Sqlx { |     Sqlx { | ||||||
|         sqlx: Database, |         sqlx: Database, | ||||||
|  |         #[serde(default)] | ||||||
|         forex_enabled: bool, |         forex_enabled: bool, | ||||||
|     }, |     }, | ||||||
|     Clickhouse { |     Clickhouse { | ||||||
|         clickhouse: ClickhouseConfig, |         clickhouse: ClickhouseConfig, | ||||||
|  |         #[serde(default)] | ||||||
|         forex_enabled: bool, |         forex_enabled: bool, | ||||||
|     }, |     }, | ||||||
|     CombinedCkh { |     CombinedCkh { | ||||||
|         sqlx: Database, |         sqlx: Database, | ||||||
|         clickhouse: ClickhouseConfig, |         clickhouse: ClickhouseConfig, | ||||||
|  |         #[serde(default)] | ||||||
|         forex_enabled: bool, |         forex_enabled: bool, | ||||||
|     }, |     }, | ||||||
|     CombinedSqlx { |     CombinedSqlx { | ||||||
|         sqlx: Database, |         sqlx: Database, | ||||||
|         clickhouse: ClickhouseConfig, |         clickhouse: ClickhouseConfig, | ||||||
|  |         #[serde(default)] | ||||||
|         forex_enabled: bool, |         forex_enabled: bool, | ||||||
|     }, |     }, | ||||||
| } | } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Sandeep Kumar
					Sandeep Kumar