From aa4cd39c943b67169def224e224bd07b815b70ec Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 31 Oct 2024 09:29:04 -0700 Subject: biome lint --- lib/mail.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/mail.ts') diff --git a/lib/mail.ts b/lib/mail.ts index 16b3dbbf..033902aa 100644 --- a/lib/mail.ts +++ b/lib/mail.ts @@ -6,23 +6,23 @@ import handlebars from "handlebars"; import fs from "fs"; import path from "path"; -let Charset = "UTF-8"; +const Charset = "UTF-8"; -export let templates = { +export const templates = { verifyEmail: "templates/payments/verify.html", paymentReceived: "templates/payments/received.html", passwordReset: "templates/payments/reset.html", }; -export let mail = async (user, subject, template, params) => { +export const mail = async (user, subject, template, params) => { try { l("sending mail", user.username, subject); if (!user.email) return; - let source = fs.readFileSync(template, "utf8"); - let html = handlebars.compile(source)(params); + const source = fs.readFileSync(template, "utf8"); + const html = handlebars.compile(source)(params); - let client = new SESClient({ region: "us-east-2" }); + const client = new SESClient({ region: "us-east-2" }); await client.send( new SendEmailCommand({ -- cgit v1.2.3