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!

added process.env.TG_BOT_TOKEN check

Blue Mousef0a5dd45ff08
diff --git a/src/auth/auth.controller.ts b/src/auth/auth.controller.ts
index fa6ed6bbc..7bcc10023 100644
--- a/src/auth/auth.controller.ts
+++ b/src/auth/auth.controller.ts
@@ -131,7 +131,7 @@ export class AuthController {
user.sharedProjects = sharedProjects
- if (user.isTelegramChatIdConfirmed) {
+ if (user.isTelegramChatIdConfirmed && process.env.TG_BOT_TOKEN) {
const ua = UAParser(userAgent)
const br = ua.browser.name || 'unknown'
const dv = ua.device.type || 'desktop'