diff --git a/Accounts/src/Pages/Register.tsx b/Accounts/src/Pages/Register.tsx index e4203ff560..c3e3cef183 100644 --- a/Accounts/src/Pages/Register.tsx +++ b/Accounts/src/Pages/Register.tsx @@ -118,7 +118,7 @@ const RegisterPage: FunctionComponent = () => { title: 'Confirm Password', overideFieldKey: 'confirmPassword', required: true, - forceShow: true + forceShow: true, }, ]} apiUrl={apiUrl} diff --git a/Mail/Index.ts b/Mail/Index.ts index fa61d90951..c264f76aa0 100644 --- a/Mail/Index.ts +++ b/Mail/Index.ts @@ -9,7 +9,7 @@ import SMTPConfigAPI from './API/SMTPConfig'; import logger from 'CommonServer/Utils/Logger'; import { PostgresAppInstance } from 'CommonServer/Infrastructure/PostgresDatabase'; -// import handlebars loader. +// import handlebars loader. import './Utils/Handlebars'; const APP_NAME: string = 'mail'; diff --git a/Mail/Services/MailService.ts b/Mail/Services/MailService.ts index 176d3908a6..fea1007063 100755 --- a/Mail/Services/MailService.ts +++ b/Mail/Services/MailService.ts @@ -18,7 +18,6 @@ import { IsDevelopment } from 'CommonServer/Config'; import { SendGridApiKey } from '../Config'; import SendgridMail, { MailDataRequired } from '@sendgrid/mail'; - export default class MailService { public static isSMTPConfigValid(obj: JSONObject): boolean { if (!obj['SMTP_USERNAME']) { diff --git a/Mail/Utils/Handlebars.ts b/Mail/Utils/Handlebars.ts index 592bb1ef9c..8f6dda4fbe 100644 --- a/Mail/Utils/Handlebars.ts +++ b/Mail/Utils/Handlebars.ts @@ -1,10 +1,8 @@ - import Handlebars from 'handlebars'; import fsp from 'fs/promises'; import Path from 'path'; import logger from 'CommonServer/Utils/Logger'; - const loadPartials: Function = async (): Promise => { // get all partials in the partial folder and comile then and register then as partials in handlebars. const partialsDir: string = Path.resolve( @@ -48,9 +46,8 @@ Handlebars.registerHelper('ifCond', function (v1, v2, options) { return options.inverse(this); }); - -Handlebars.registerHelper('concat', function (v1, v2) { - // contact v1 and v2 +Handlebars.registerHelper('concat', (v1, v2) => { + // contact v1 and v2 return v1 + v2; }); @@ -61,4 +58,4 @@ Handlebars.registerHelper('ifNotCond', function (v1, v2, options) { } //@ts-ignore return options.inverse(this); -}); \ No newline at end of file +}); diff --git a/Workers/Jobs/IncidentPublicNote/SendEmailToSubscribers.ts b/Workers/Jobs/IncidentPublicNote/SendEmailToSubscribers.ts index 136a353a6b..13988a5f53 100644 --- a/Workers/Jobs/IncidentPublicNote/SendEmailToSubscribers.ts +++ b/Workers/Jobs/IncidentPublicNote/SendEmailToSubscribers.ts @@ -256,7 +256,9 @@ RunCron( ) .toString(), }, - subject: statusPageName + ' - New note has been added to an incident', + subject: + statusPageName + + ' - New note has been added to an incident', }, ProjectSmtpConfigService.toEmailServer( statuspage.smtpConfig