mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +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 {
|
||||
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
||||
Some(ApiEventsType::User {
|
||||
merchant_id: self.merchant_id.clone(),
|
||||
user_id: self.user_id.clone(),
|
||||
})
|
||||
}
|
||||
@ -34,7 +33,6 @@ impl ApiEventMetric for DashboardEntryResponse {
|
||||
impl ApiEventMetric for VerifyTokenResponse {
|
||||
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
||||
Some(ApiEventsType::User {
|
||||
merchant_id: self.merchant_id.clone(),
|
||||
user_id: self.user_email.peek().to_string(),
|
||||
})
|
||||
}
|
||||
|
||||
@ -29,8 +29,6 @@ pub enum ApiEventsType {
|
||||
customer_id: id_type::CustomerId,
|
||||
},
|
||||
User {
|
||||
//specified merchant_id will overridden on global defined
|
||||
merchant_id: String,
|
||||
user_id: String,
|
||||
},
|
||||
PaymentMethodList {
|
||||
|
||||
@ -378,6 +378,8 @@ services:
|
||||
- "8123:8123"
|
||||
volumes:
|
||||
- ./crates/analytics/docs/clickhouse/scripts:/docker-entrypoint-initdb.d
|
||||
environment:
|
||||
- TZ=Asia/Kolkata
|
||||
profiles:
|
||||
- olap
|
||||
ulimits:
|
||||
|
||||
Reference in New Issue
Block a user