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 Mousea09e1581e8cb
diff --git a/src/analytics/analytics.service.ts b/src/analytics/analytics.service.ts
index 2e7f9c9a4..a0777d3d8 100644
--- a/src/analytics/analytics.service.ts
+++ b/src/analytics/analytics.service.ts
@@ -259,10 +259,7 @@ export class AnalyticsService {
// TODO: Properly validate the ipBlacklist on project update
const ipBlacklist = _filter(project.ipBlacklist, Boolean)
- if (
- !_isEmpty(ipBlacklist) &&
- ipRangeCheck(ip, ipBlacklist)
- ) {
+ if (!_isEmpty(ipBlacklist) && ipRangeCheck(ip, ipBlacklist)) {
throw new BadRequestException(
'Incoming analytics is disabled for this IP address',
)
@@ -954,7 +951,11 @@ export class AnalyticsService {
return DateRelativeToUTC.TOMORROW
}
- updateXAxisTimezone(x: string[], timezone: string, timeBucket: TimeBucketType): string[] {
+ updateXAxisTimezone(
+ x: string[],
+ timezone: string,
+ timeBucket: TimeBucketType,
+ ): string[] {
if (timezone === DEFAULT_TIMEZONE || !isValidTimezone(timezone)) {
return x
}
@@ -974,10 +975,14 @@ export class AnalyticsService {
}
if (relative === DateRelativeToUTC.YESTERDAY) {
- return convertedDate.add(1, 'day').format(TimeBucketToDateFormat[timeBucket])
+ return convertedDate
+ .add(1, 'day')
+ .format(TimeBucketToDateFormat[timeBucket])
}
- return convertedDate.subtract(1, 'day').format(TimeBucketToDateFormat[timeBucket])
+ return convertedDate
+ .subtract(1, 'day')
+ .format(TimeBucketToDateFormat[timeBucket])
})
}
diff --git a/src/auth/strategies/jwt-access-token.strategy.ts b/src/auth/strategies/jwt-access-token.strategy.ts
index 947719f68..b2b357ac6 100644
--- a/src/auth/strategies/jwt-access-token.strategy.ts
+++ b/src/auth/strategies/jwt-access-token.strategy.ts
@@ -3,7 +3,11 @@ import { ConfigService } from '@nestjs/config'
import { PassportStrategy } from '@nestjs/passport'
import { Strategy, ExtractJwt } from 'passport-jwt'
-import { isSelfhosted, SELFHOSTED_UUID, JWT_ACCESS_TOKEN_SECRET } from 'src/common/constants'
+import {
+ isSelfhosted,
+ SELFHOSTED_UUID,
+ JWT_ACCESS_TOKEN_SECRET,
+} from 'src/common/constants'
import { generateSelfhostedUser } from 'src/user/entities/user.entity'
import { UserService } from 'src/user/user.service'
import { IJwtPayload } from '../interfaces'
diff --git a/src/project/project.service.ts b/src/project/project.service.ts
index fada818ce..4c0d6ec6f 100644
--- a/src/project/project.service.ts
+++ b/src/project/project.service.ts
@@ -314,7 +314,9 @@ export class ProjectService {
return null
}
- throw new ForbiddenException(`You are not allowed to view "${project?.name}" project`)
+ throw new ForbiddenException(
+ `You are not allowed to view "${project?.name}" project`,
+ )
}
allowedToManage(