don't upsert if audit log doesn't have medipost_private_message_id, improve logging

This commit is contained in:
Karli
2025-09-22 15:31:06 +03:00
parent 5f0ca6bdae
commit 428a1dfb87
4 changed files with 32 additions and 23 deletions

View File

@@ -163,8 +163,9 @@ async function sendAnalysisPackageOrderEmail({
partnerLocationName,
language,
});
console.info(`Successfully sent analysis package order email to ${email}`);
} catch (error) {
console.error("Failed to send email", error);
console.error(`Failed to send analysis package order email to ${email}`, error);
}
}