1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

fix: scheduled cr failed email (#5522)

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>
This commit is contained in:
andreas-unleash 2023-12-04 11:51:06 +02:00 committed by GitHub
parent 08204e57d4
commit 3056456770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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