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!

removed obsolete todos

Blue Mouse2b259ef24b11
diff --git a/src/analytics/analytics.service.ts b/src/analytics/analytics.service.ts
index 790bf5b43..70e8bda2b 100644
--- a/src/analytics/analytics.service.ts
+++ b/src/analytics/analytics.service.ts
@@ -185,7 +185,6 @@ export class AnalyticsService {
// 'tz' does not need validation as it's based on getCountryForTimezone detection
// @ts-ignore
const { lc } = logDTO
- // TODO: IMPORTANT!: validate pg param
// validate locale ('lc' param)
if (!_isEmpty(lc)) {
@@ -211,7 +210,6 @@ export class AnalyticsService {
if (!project.active) throw new BadRequestException('Incoming analytics is disabled for this project')
if (!isSelfhosted) {
- // TODO: (IMPORTANT) CHECK THE EVENTS COUNT --SUM-- FROM ALL USERS PROJECTS
const count = await this.getRedisCount(project.admin.id)
const maxCount = ACCOUNT_PLANS[project.admin.planCode].monthlyUsageLimit || 0