Skip to content

Commit 4c304cf

Browse files
committed
Fix tests
1 parent de7fe5d commit 4c304cf

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

workers/email/tests/provider.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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',

workers/sender/types/template-variables/event.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)