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!

(fix) add missing links to trial expiration emails

Blue Mousef4f61c843c9e
diff --git a/apps/production/src/task-manager/task-manager.service.ts b/apps/production/src/task-manager/task-manager.service.ts
index 29a656b8a..03c8eb0a0 100644
--- a/apps/production/src/task-manager/task-manager.service.ts
+++ b/apps/production/src/task-manager/task-manager.service.ts
@@ -928,6 +928,9 @@ export class TaskManagerService {
await this.mailerService.sendEmail(
email,
LetterTemplate.TrialEndsTomorrow,
+ {
+ url: 'https://swetrix.com/billing',
+ },
)
})
@@ -986,7 +989,9 @@ export class TaskManagerService {
dashboardBlockReason: DashboardBlockReason.trial_ended,
// trialEndDate: null,
})
- await this.mailerService.sendEmail(email, LetterTemplate.TrialExpired)
+ await this.mailerService.sendEmail(email, LetterTemplate.TrialExpired, {
+ url: 'https://swetrix.com/billing',
+ })
await this.projectService.clearProjectsRedisCache(id)
})