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