File tree Expand file tree Collapse file tree
email/src/templates/emails/event Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858{% endblock %}
5959
6060{% block unsubscribeLink %}
61- {{ host ~ ' /unsubscribe/' ~ project . _id }}
61+ {{ host ~ ' /unsubscribe/' ~ notificationRuleId }}
6262{% endblock %}
6363
6464{% block unsubscribeText %}
Original file line number Diff line number Diff line change @@ -196,6 +196,7 @@ export default abstract class SenderWorker extends Worker {
196196 project,
197197 events : eventsData ,
198198 period : channel . minPeriod ,
199+ notificationRuleId : rule . _id ,
199200 } ,
200201 } as EventNotification | SeveralEventsNotification ) ;
201202 }
Original file line number Diff line number Diff line change @@ -45,6 +45,11 @@ export interface EventsTemplateVariables extends CommonTemplateVariables {
4545 * Minimal pause between second notification, in seconds
4646 */
4747 period : number ;
48+
49+ /**
50+ * Id of notification rule to unsubscribe
51+ */
52+ notificationRuleId : string ;
4853}
4954
5055/**
You can’t perform that action at this time.
0 commit comments