mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
feat(analytics): Revert api_event metrics and filters back to merchant_id authentication (#5821)
This commit is contained in:
@ -828,7 +828,7 @@ impl AnalyticsProvider {
|
||||
&self,
|
||||
metric: &ApiEventMetrics,
|
||||
dimensions: &[ApiEventDimensions],
|
||||
auth: &AuthInfo,
|
||||
merchant_id: &common_utils::id_type::MerchantId,
|
||||
filters: &ApiEventFilters,
|
||||
granularity: &Option<Granularity>,
|
||||
time_range: &TimeRange,
|
||||
@ -840,7 +840,14 @@ impl AnalyticsProvider {
|
||||
| Self::CombinedSqlx(_, ckh_pool) => {
|
||||
// Since API events are ckh only use ckh here
|
||||
metric
|
||||
.load_metrics(dimensions, auth, filters, granularity, time_range, ckh_pool)
|
||||
.load_metrics(
|
||||
dimensions,
|
||||
merchant_id,
|
||||
filters,
|
||||
granularity,
|
||||
time_range,
|
||||
ckh_pool,
|
||||
)
|
||||
.await
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user