mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
fix(events): Correct parsing of API events with user event_type for Clickhouse (#5022)
This commit is contained in:
@ -24,7 +24,6 @@ use crate::user::{
|
|||||||
impl ApiEventMetric for DashboardEntryResponse {
|
impl ApiEventMetric for DashboardEntryResponse {
|
||||||
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
||||||
Some(ApiEventsType::User {
|
Some(ApiEventsType::User {
|
||||||
merchant_id: self.merchant_id.clone(),
|
|
||||||
user_id: self.user_id.clone(),
|
user_id: self.user_id.clone(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -34,7 +33,6 @@ impl ApiEventMetric for DashboardEntryResponse {
|
|||||||
impl ApiEventMetric for VerifyTokenResponse {
|
impl ApiEventMetric for VerifyTokenResponse {
|
||||||
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
||||||
Some(ApiEventsType::User {
|
Some(ApiEventsType::User {
|
||||||
merchant_id: self.merchant_id.clone(),
|
|
||||||
user_id: self.user_email.peek().to_string(),
|
user_id: self.user_email.peek().to_string(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,8 +29,6 @@ pub enum ApiEventsType {
|
|||||||
customer_id: id_type::CustomerId,
|
customer_id: id_type::CustomerId,
|
||||||
},
|
},
|
||||||
User {
|
User {
|
||||||
//specified merchant_id will overridden on global defined
|
|
||||||
merchant_id: String,
|
|
||||||
user_id: String,
|
user_id: String,
|
||||||
},
|
},
|
||||||
PaymentMethodList {
|
PaymentMethodList {
|
||||||
|
|||||||
@ -378,6 +378,8 @@ services:
|
|||||||
- "8123:8123"
|
- "8123:8123"
|
||||||
volumes:
|
volumes:
|
||||||
- ./crates/analytics/docs/clickhouse/scripts:/docker-entrypoint-initdb.d
|
- ./crates/analytics/docs/clickhouse/scripts:/docker-entrypoint-initdb.d
|
||||||
|
environment:
|
||||||
|
- TZ=Asia/Kolkata
|
||||||
profiles:
|
profiles:
|
||||||
- olap
|
- olap
|
||||||
ulimits:
|
ulimits:
|
||||||
|
|||||||
Reference in New Issue
Block a user