File tree Expand file tree Collapse file tree
sender/types/template-variables Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ describe('EmailProvider', () => {
8181 period : 60 ,
8282 host : process . env . GARAGE_URL ! ,
8383 hostOfStatic : process . env . API_STATIC_URL ! ,
84+ notificationRuleId : '5d206f7f9aaf7c0071d64596' ,
8485 project : {
8586 _id : new ObjectId ( '5d206f7f9aaf7c0071d64596' ) ,
8687 token : 'project-token' ,
@@ -131,6 +132,7 @@ describe('EmailProvider', () => {
131132 } ] ,
132133 host : process . env . GARAGE_URL ! ,
133134 hostOfStatic : process . env . API_STATIC_URL ! ,
135+ notificationRuleId : '5d206f7f9aaf7c0071d64596' ,
134136 project : {
135137 _id : new ObjectId ( '5d206f7f9aaf7c0071d64596' ) ,
136138 token : 'project-token' ,
Original file line number Diff line number Diff line change @@ -47,9 +47,10 @@ export interface EventsTemplateVariables extends CommonTemplateVariables {
4747 period : number ;
4848
4949 /**
50- * Id of notification rule to unsubscribe
50+ * Id of notification rule to unsubscribe.
51+ * Required for email notifications – to form unsubscribe link.
5152 */
52- notificationRuleId : string ;
53+ notificationRuleId ? : string ;
5354}
5455
5556/**
You can’t perform that action at this time.
0 commit comments