chore: file formatting

This commit is contained in:
Kailasdevdas
2026-05-26 15:48:01 +05:30
parent 8a21e0bf38
commit 78e2618a29
117 changed files with 12775 additions and 14638 deletions
+5 -5
View File
@@ -1,18 +1,18 @@
import postmark from "postmark";
import postmark from 'postmark';
const client = new postmark.ServerClient(process.env.POSTMARK_API_KEY);
export const sendEmail = async ({to, subject, html, text}) => {
export const sendEmail = async ({ to, subject, html, text }) => {
try {
await client.sendEmail({
From: process.env.EMAIL_FROM,
To: to,
Subject: subject,
HtmlBody: html,
TextBody: text || "",
MessageStream: "outbound",
TextBody: text || '',
MessageStream: 'outbound',
});
} catch (error) {
console.error("Email send error:", error);
console.error('Email send error:', error);
}
};