Skip to content

Commit

Permalink
fix: lint AB#26923
Browse files Browse the repository at this point in the history
  • Loading branch information
arsforza committed Jun 28, 2024
1 parent f549632 commit 4512c07
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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('');
Expand All @@ -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,
Expand Down

0 comments on commit 4512c07

Please sign in to comment.