Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

user-flow for timebucket allperiod

Maksim Mrug01c62612bb7c
diff --git a/apps/production/src/analytics/analytics.controller.ts b/apps/production/src/analytics/analytics.controller.ts
index d4e4ae5f5..14f20cd0d 100644
--- a/apps/production/src/analytics/analytics.controller.ts
+++ b/apps/production/src/analytics/analytics.controller.ts
@@ -645,6 +645,17 @@ export class AnalyticsController {
this.analyticsService.validatePeriod(period)
}
+ let diff
+
+ if (period === 'all') {
+ const res = await this.analyticsService.getTimeBucketForAllTime(
+ pid,
+ period,
+ )
+
+ diff = res.diff
+ }
+
await this.analyticsService.checkProjectAccess(
pid,
uid,
@@ -658,6 +669,7 @@ export class AnalyticsController {
null,
period,
safeTimezone,
+ diff,
)
const [filtersQuery, filtersParams, appliedFilters] =