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!

add missing helpers

Blue Mouse90ee5ae9887d
diff --git a/backend/apps/cloud/src/mailer/mailer.service.ts b/backend/apps/cloud/src/mailer/mailer.service.ts
index 2a7ab9f03..098971ea1 100644
--- a/backend/apps/cloud/src/mailer/mailer.service.ts
+++ b/backend/apps/cloud/src/mailer/mailer.service.ts
@@ -138,6 +138,13 @@ handlebars.registerHelper('greater', function greater(v1, v2, options) {
return options.inverse(this)
})
+handlebars.registerHelper('less', function less(v1, v2, options) {
+ if (v1 < v2) {
+ return options.fn(this)
+ }
+ return options.inverse(this)
+})
+
@Injectable()
export class MailerService {
constructor(
diff --git a/backend/apps/community/src/mailer/mailer.service.ts b/backend/apps/community/src/mailer/mailer.service.ts
index dd4d0ffe1..6a91bcf0f 100644
--- a/backend/apps/community/src/mailer/mailer.service.ts
+++ b/backend/apps/community/src/mailer/mailer.service.ts
@@ -59,6 +59,13 @@ handlebars.registerHelper('greater', function greater(v1, v2, options) {
return options.inverse(this)
})
+handlebars.registerHelper('less', function less(v1, v2, options) {
+ if (v1 < v2) {
+ return options.fn(this)
+ }
+ return options.inverse(this)
+})
+
@Injectable()
export class MailerService {
constructor(