Skip to content

Commit

Permalink
fix: scheduled cr failed email (#5522)
Browse files Browse the repository at this point in the history
Relates to #
[1-1687](https://linear.app/unleash/issue/1-1687/send-an-email-when-the-scheduling-fails)

Removed `name` - not in template
Added missed `changeRequestTitle` for the html template context

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
  • Loading branch information
andreas-unleash committed Dec 4, 2023
1 parent 08204e5 commit 3056456
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/services/email-service.ts
Expand Up @@ -71,7 +71,6 @@ export class EmailService {
}

async sendScheduledExecutionFailedEmail(
name: string,
recipient: string,
changeRequestLink: string,
changeRequestTitle: string,
Expand All @@ -85,9 +84,9 @@ export class EmailService {
TemplateFormat.HTML,
{
changeRequestLink,
changeRequestTitle,
scheduledAt,
errorMessage,
name,
year,
},
);
Expand All @@ -99,7 +98,6 @@ export class EmailService {
changeRequestTitle,
scheduledAt,
errorMessage,
name,
year,
},
);
Expand Down

0 comments on commit 3056456

Please sign in to comment.