π 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
link to project
Blue Mouse0113bb6e4f0b
diff --git a/backend/apps/cloud/src/task-manager/task-manager.service.ts b/backend/apps/cloud/src/task-manager/task-manager.service.tsindex 04753608b..75b4f75f2 100644--- a/backend/apps/cloud/src/task-manager/task-manager.service.ts+++ b/backend/apps/cloud/src/task-manager/task-manager.service.ts@@ -1224,6 +1224,11 @@ export class TaskManagerService {let text = ``+ const clientUrl = this.configService.get('CLIENT_URL')+ const escapedProjectLink = this.telegramService.escapeTelegramMarkdown(+ `${clientUrl}/projects/${project.id}`,+ )+if (alert.queryMetric === QueryMetric.ERRORS) {if (!errorDetails) {console.error(@@ -1233,13 +1238,9 @@ export class TaskManagerService {return}- const clientUrl = this.configService.get('CLIENT_URL')const escapedErrorLink = this.telegramService.escapeTelegramMarkdown(`${clientUrl}/projects/${project.id}?tab=errors&eid=${errorDetails.eid}`,)- const escapedProjectLink = this.telegramService.escapeTelegramMarkdown(- `${clientUrl}/projects/${project.id}`,- )const alertName = this.telegramService.escapeTelegramMarkdown(alert.name,@@ -1297,7 +1298,7 @@ export class TaskManagerService {text =`π Alert *${alertName}* triggered!\n\n` +- `Your project *${projectName}* has had *${count}${customEventInfo}* ${queryMetricString} in the last *${effectiveQueryTimeString}*!`+ `Your project [${projectName}](${escapedProjectLink}) has had *${count}${customEventInfo}* ${queryMetricString} in the last *${effectiveQueryTimeString}*!`}if (project.admin?.isTelegramChatIdConfirmed) {