aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mail.ts
diff options
context:
space:
mode:
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({