Add ses hook parser to capture all the events

This commit is contained in:
KMKoushik
2024-04-16 14:04:30 +10:00
parent 293277ed32
commit 9465960f0a
22 changed files with 712 additions and 105 deletions

View File

@@ -1,6 +1,6 @@
import { EmailContent } from "~/types";
import { db } from "../db";
import { sendEmailThroughSes } from "../ses";
import { sendEmailThroughSes } from "../aws/ses";
import { APP_SETTINGS } from "~/utils/constants";
export async function sendEmail(
@@ -45,7 +45,7 @@ export async function sendEmail(
subject,
text,
html,
id: messageId,
sesEmailId: messageId,
teamId,
domainId: domain.id,
},