Fix email login

This commit is contained in:
KMKoushik
2024-08-13 07:42:44 +10:00
parent e8d87ca20d
commit 0941c4b5ad
3 changed files with 2 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ async function sendMail(
text: string,
html: string
) {
if (env.UNSEND_API_KEY && env.UNSEND_URL && env.FROM_EMAIL) {
if (env.UNSEND_API_KEY && env.FROM_EMAIL) {
const resp = await getClient().emails.send({
to: email,
from: env.FROM_EMAIL,
@@ -55,6 +55,6 @@ async function sendMail(
);
}
} else {
throw new Error("UNSEND_API_KEY or UNSEND_URL not found");
throw new Error("UNSEND_API_KEY not found");
}
}