From 4512c07c1dec0b928e075d7c8393c96f2be1eb55 Mon Sep 17 00:00:00 2001 From: arsforza Date: Fri, 28 Jun 2024 16:04:45 +0200 Subject: [PATCH] fix: lint AB#26923 --- .../src/api/notification/email/email-template.service.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/services/API-service/src/api/notification/email/email-template.service.ts b/services/API-service/src/api/notification/email/email-template.service.ts index faa6ae1a2..c3ae60ed0 100644 --- a/services/API-service/src/api/notification/email/email-template.service.ts +++ b/services/API-service/src/api/notification/email/email-template.service.ts @@ -21,11 +21,6 @@ const emailTemplateFolder = `${emailFolder}/html`; const emailIconFolder = `${emailFolder}/icons`; const emailLogoFolder = `${emailFolder}/logos`; -class ReplaceKeyValue { - replaceKey: string; - replaceValue: string; -} - @Injectable() export class EmailTemplateService { public async createHtmlForTriggerEmail( @@ -358,7 +353,7 @@ export class EmailTemplateService { }; const templateFileName = 'body-event.html'; - let template = this.readHtmlFile(templateFileName); + const template = this.readHtmlFile(templateFileName); return ejs.render(template, data); }) .join(''); @@ -383,7 +378,7 @@ export class EmailTemplateService { if (event.triggerStatusLabel === TriggerStatusLabelEnum.Warning) { return this.readHtmlFile('body-total-affected-warning.html'); } else { - let html = this.readHtmlFile('body-total-affected-trigger.html'); + const html = this.readHtmlFile('body-total-affected-trigger.html'); return ejs.render(html, { totalAffectedOfIndicator: event.totalAffectedOfIndicator, indicatorUnit: indicatorUnit,