misc: added email formatting for remaining templates

This commit is contained in:
Sheen Capadngan
2024-07-24 16:33:41 +08:00
parent 28087cdcc4
commit 8e373fe9bf
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ export const smtpServiceFactory = (cfg: TSmtpConfig) => {
const appCfg = getConfig();
const html = await fs.readFile(path.resolve(__dirname, "./templates/", template), "utf8");
const temp = handlebars.compile(html);
const htmlToSend = temp({ ...substitutions, isCloud: appCfg.isCloud });
const htmlToSend = temp({ isCloud: appCfg.isCloud, siteUrl: appCfg.SITE_URL, ...substitutions });
if (isSmtpOn) {
await smtp.sendMail({