Fix table headings and skip multiple delivery delayed

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

View File

@@ -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,