Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

moved logs to sendDomainInvalidEmail function

Steven Tey4586e648aeb5
diff --git a/lib/cron/domains.tsx b/lib/cron/domains.tsx
index bf4a01edbf..5986c36477 100644
--- a/lib/cron/domains.tsx
+++ b/lib/cron/domains.tsx
@@ -24,7 +24,6 @@ export const handleDomainUpdates = async (
);
if (invalidDays >= 14 && invalidDays < 28) {
- await log(`Domain *${domain}* is invalid for ${invalidDays} days`);
const sentFirstDomainInvalidEmail = sentEmails.includes(
"firstDomainInvalidEmail"
);
@@ -80,6 +79,7 @@ const sendDomainInvalidEmail = async (
) => {
const ownerEmail = await getProjectOwnerEmail(projectSlug);
return await Promise.all([
+ log(`Domain *${domain}* is invalid for ${invalidDays} days, email sent.`),
sendMail({
subject: `Your domain ${domain} needs to be configured`,
to: ownerEmail,