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!

fix: groupByTimeBucket does not return data

Blue Mouse199eeee07f7b
diff --git a/src/analytics/analytics.service.ts b/src/analytics/analytics.service.ts
index fe94da703..778dc41aa 100644
--- a/src/analytics/analytics.service.ts
+++ b/src/analytics/analytics.service.ts
@@ -1046,7 +1046,7 @@ export class AnalyticsService {
const promises = [
// Getting params
- async () => {
+ (async () => {
params = await this.groupParamsByTimeBucket(
subQuery,
paramsData,
@@ -1059,10 +1059,10 @@ export class AnalyticsService {
'The are no parameters for the specified time frames',
)
}
- },
+ })(),
// Getting chart & average session duration data
- async () => {
+ (async () => {
const groupedData = await this.groupChartByTimeBucket(
timeBucket,
from,
@@ -1079,7 +1079,7 @@ export class AnalyticsService {
// @ts-ignore
avgSdur = groupedData.avgSdur
- },
+ })(),
]
await Promise.all(promises)