Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix(analytics): populate user_id for JWT-authenticated report generation events (#13459)

Mudit Bhutani7233f043650f
diff --git a/crates/router/src/services/authentication.rs b/crates/router/src/services/authentication.rs
index 135cbeafae..1dc9ae51cb 100644
--- a/crates/router/src/services/authentication.rs
+++ b/crates/router/src/services/authentication.rs
@@ -5256,7 +5256,7 @@ where
(auth.clone(), Some(payload.user_id.clone())),
AuthenticationType::MerchantJwt {
merchant_id: payload.merchant_id,
- user_id: None,
+ user_id: Some(payload.user_id),
},
))
}