Fix table headings and skip multiple delivery delayed
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user