diff options
| author | Adam Soltys <[email protected]> | 2024-10-31 09:29:04 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-10-31 09:34:42 -0700 |
| commit | aa4cd39c943b67169def224e224bd07b815b70ec (patch) | |
| tree | 2af857ac971705f4d20eb017864f0365d0b57ea6 /lib/mail.ts | |
| parent | bc9c04f6519f32d3b444d4df0b276eba960480a9 (diff) | |
| download | coinos-server-aa4cd39c943b67169def224e224bd07b815b70ec.tar.gz coinos-server-aa4cd39c943b67169def224e224bd07b815b70ec.zip | |
biome lint
Diffstat (limited to 'lib/mail.ts')
| -rw-r--r-- | lib/mail.ts | 12 |
1 files changed, 6 insertions, 6 deletions
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({ |
