Fix table headings and skip multiple delivery delayed

This commit is contained in:
KMKoushik committed 2024-07-08 06:50:52 +10:00
1 parent 6af2521ebb
commit 8197875d96
2 files changed
+9 -2

No files matched your search

@@ -27,6 +27,13 @@ export async function parseSesHook(data: SesEvent) {
return false;
}
if (
email.latestStatus === mailStatus &&
mailStatus === EmailStatus.DELIVERY_DELAYED
) {
return true;
}
await db.email.update({
where: {
id: email.id,