0

Update email_notification.ts

This commit is contained in:
Nicolas 2024-06-05 13:53:31 -07:00
parent ec10eb09f3
commit d7f8208cdb

View File

@ -3,7 +3,6 @@ import { withAuth } from "../../lib/withAuth";
import { Resend } from "resend";
import { NotificationType } from "../../types";
const resend = new Resend(process.env.RESEND_API_KEY);
@ -43,6 +42,8 @@ async function sendEmailNotification(
email: string,
notificationType: NotificationType
) {
const resend = new Resend(process.env.RESEND_API_KEY);
try {
const { data, error } = await resend.emails.send({
from: "Firecrawl <firecrawl@getmendableai.com>",