π 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!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Fix lints
Blue Mouse7e3d31dfc7e6
diff --git a/backend/apps/cloud/src/project/dto/create-project-view.dto.ts b/backend/apps/cloud/src/project/dto/create-project-view.dto.tsindex b0cb42e48..d787d3015 100644--- a/backend/apps/cloud/src/project/dto/create-project-view.dto.ts+++ b/backend/apps/cloud/src/project/dto/create-project-view.dto.ts@@ -61,7 +61,7 @@ export const MAX_METRICS_IN_VIEW = 3// Mirrors MAX_FILTERS in analytics.service β the cap applied when filters run// against ClickHouse, so a saved view can never hold more than a query accepts.-export const MAX_FILTERS_IN_VIEW = 100+const MAX_FILTERS_IN_VIEW = 100export class CreateProjectViewDto {@ApiProperty()diff --git a/backend/apps/community/src/analytics/analytics.service.ts b/backend/apps/community/src/analytics/analytics.service.tsindex 599b64398..d69ebd9fe 100644--- a/backend/apps/community/src/analytics/analytics.service.ts+++ b/backend/apps/community/src/analytics/analytics.service.ts@@ -314,7 +314,10 @@ const captchaMetaValue = (key: string, fallback: string) =>`if(indexOf(\`meta.key\`, '${key}') = 0, '${fallback}', arrayElement(\`meta.value\`, indexOf(\`meta.key\`, '${key}')))`export const CAPTCHA_EVENT_SQL = captchaMetaValue('captcha_event', 'pass')-export const CAPTCHA_DIFFICULTY_SQL = captchaMetaValue('captcha_difficulty', '0')+export const CAPTCHA_DIFFICULTY_SQL = captchaMetaValue(+ 'captcha_difficulty',+ '0',+)export const CAPTCHA_REASON_SQL = captchaMetaValue('captcha_reason', '')export const CAPTCHA_SOLVE_MS_SQL = `toUInt32OrZero(${captchaMetaValue('solve_ms', '0')})`const CAPTCHA_SOLVE_TIME_SQL = `multiIf(${CAPTCHA_SOLVE_MS_SQL} = 0, 'unknown', ${CAPTCHA_SOLVE_MS_SQL} < 1000, '<1s', ${CAPTCHA_SOLVE_MS_SQL} < 3000, '1-3s', ${CAPTCHA_SOLVE_MS_SQL} < 10000, '3-10s', ${CAPTCHA_SOLVE_MS_SQL} < 30000, '10-30s', '30s+')`diff --git a/backend/apps/community/src/analytics/v2/__tests__/ioredis.stub.ts b/backend/apps/community/src/analytics/v2/__tests__/ioredis.stub.tsdeleted file mode 100644index c1b956f81..000000000--- a/backend/apps/community/src/analytics/v2/__tests__/ioredis.stub.ts+++ /dev/null@@ -1,18 +0,0 @@-/**- * Minimal ioredis stand-in so importing analytics.service.ts (which pulls in- * common/constants and its module-level Redis client) doesn't open network- * connections during unit tests.- */-class RedisStub {- // eslint-disable-next-line @typescript-eslint/no-useless-constructor- constructor(..._args: unknown[]) {}-- defineCommand(): void {}-- on(): this {- return this- }-}--export default RedisStub-export { RedisStub as Redis }diff --git a/backend/apps/community/src/project/dto/create-project-view.dto.ts b/backend/apps/community/src/project/dto/create-project-view.dto.tsindex b0cb42e48..d787d3015 100644--- a/backend/apps/community/src/project/dto/create-project-view.dto.ts+++ b/backend/apps/community/src/project/dto/create-project-view.dto.ts@@ -61,7 +61,7 @@ export const MAX_METRICS_IN_VIEW = 3// Mirrors MAX_FILTERS in analytics.service β the cap applied when filters run// against ClickHouse, so a saved view can never hold more than a query accepts.-export const MAX_FILTERS_IN_VIEW = 100+const MAX_FILTERS_IN_VIEW = 100export class CreateProjectViewDto {@ApiProperty()