fix(events): Correct parsing of API events with user event_type for Clickhouse (#5022)

This commit is contained in:
Abhishek Kanojia
2024-06-19 16:29:53 +05:30
committed by GitHub
parent 655b81d697
commit 2106a27f40
3 changed files with 2 additions and 4 deletions

View File

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

View File

@ -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 {

View File

@ -378,6 +378,8 @@ services:
- "8123:8123"
volumes:
- ./crates/analytics/docs/clickhouse/scripts:/docker-entrypoint-initdb.d
environment:
- TZ=Asia/Kolkata
profiles:
- olap
ulimits: