aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mail.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-10-31 09:29:04 -0700
committerAdam Soltys <[email protected]>2024-10-31 09:34:42 -0700
commitaa4cd39c943b67169def224e224bd07b815b70ec (patch)
tree2af857ac971705f4d20eb017864f0365d0b57ea6 /lib/mail.ts
parentbc9c04f6519f32d3b444d4df0b276eba960480a9 (diff)
downloadcoinos-server-aa4cd39c943b67169def224e224bd07b815b70ec.tar.gz
coinos-server-aa4cd39c943b67169def224e224bd07b815b70ec.zip
biome lint
Diffstat (limited to 'lib/mail.ts')
-rw-r--r--lib/mail.ts12
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({