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!

lint:fix

Blue Mousec078020a5ef3
diff --git a/apps/production/src/analytics/analytics.service.ts b/apps/production/src/analytics/analytics.service.ts
index 608064dfd..34cac9b64 100644
--- a/apps/production/src/analytics/analytics.service.ts
+++ b/apps/production/src/analytics/analytics.service.ts
@@ -1187,12 +1187,7 @@ export class AnalyticsService {
? 0
: await this.calculateAverageSessionDuration(subQuery, paramsData)
- const { xShifted } = this.generateXAxis(
- timeBucket,
- from,
- to,
- safeTimezone,
- )
+ const { xShifted } = this.generateXAxis(timeBucket, from, to, safeTimezone)
if (customEVFilterApplied) {
const query = this.generateCustomEventsAggregationQuery(
@@ -1374,12 +1369,7 @@ export class AnalyticsService {
paramsData: object,
safeTimezone: string,
) {
- const { xShifted } = this.generateXAxis(
- timeBucket,
- from,
- to,
- safeTimezone,
- )
+ const { xShifted } = this.generateXAxis(timeBucket, from, to, safeTimezone)
const query = this.generatePerformanceAggregationQuery(
timeBucket,
@@ -1478,12 +1468,7 @@ export class AnalyticsService {
paramsData: object,
safeTimezone: string,
): Promise<object | void> {
- const { xShifted } = this.generateXAxis(
- timeBucket,
- from,
- to,
- safeTimezone,
- )
+ const { xShifted } = this.generateXAxis(timeBucket, from, to, safeTimezone)
const timeBucketFunc = timeBucketConversion[timeBucket]
const [selector, groupBy] = this.getGroupSubquery(timeBucket)
diff --git a/apps/selfhosted/src/analytics/analytics.service.ts b/apps/selfhosted/src/analytics/analytics.service.ts
index a4337029f..fcca8efea 100644
--- a/apps/selfhosted/src/analytics/analytics.service.ts
+++ b/apps/selfhosted/src/analytics/analytics.service.ts
@@ -983,7 +983,6 @@ export class AnalyticsService {
`
}
-
generateCustomEventsAggregationQuery(
timeBucket: TimeBucketType,
filtersQuery: string,
@@ -1167,12 +1166,7 @@ export class AnalyticsService {
? 0
: await this.calculateAverageSessionDuration(subQuery, paramsData)
- const { xShifted } = this.generateXAxis(
- timeBucket,
- from,
- to,
- safeTimezone,
- )
+ const { xShifted } = this.generateXAxis(timeBucket, from, to, safeTimezone)
if (customEVFilterApplied) {
const query = this.generateCustomEventsAggregationQuery(
@@ -1187,7 +1181,8 @@ export class AnalyticsService {
)
const uniques =
- this.extractCustomEventsChartData(result, xShifted)?._unknown_event || []
+ this.extractCustomEventsChartData(result, xShifted)?._unknown_event ||
+ []
const sdur = Array(_size(xShifted)).fill(0)
@@ -1352,12 +1347,7 @@ export class AnalyticsService {
paramsData: object,
safeTimezone: string,
) {
- const { xShifted } = this.generateXAxis(
- timeBucket,
- from,
- to,
- safeTimezone,
- )
+ const { xShifted } = this.generateXAxis(timeBucket, from, to, safeTimezone)
const query = this.generatePerformanceAggregationQuery(
timeBucket,
@@ -1456,12 +1446,7 @@ export class AnalyticsService {
paramsData: object,
safeTimezone: string,
): Promise<object | void> {
- const { xShifted } = this.generateXAxis(
- timeBucket,
- from,
- to,
- safeTimezone,
- )
+ const { xShifted } = this.generateXAxis(timeBucket, from, to, safeTimezone)
const timeBucketFunc = timeBucketConversion[timeBucket]
const [selector, groupBy] = this.getGroupSubquery(timeBucket)