Skip to content

Commit

Permalink
remove email checks on individual artists for artwork and submissions…
Browse files Browse the repository at this point in the history
… emails
  • Loading branch information
Jack MB committed May 29, 2024
1 parent 744bee3 commit c760709
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions pages/api/admin/artwork-email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ export default async function handler(
`Failed to send email request to ${artist.name} (${artist.email}) for show *${show.title}*. Error: ${error.message}. <@U04HG3VHHEW>`
);
}
} else if (!artist.email) {
console.warn(`${artist.name} does not have an email`);
await sendSlackMessage(
`*${artist.name}* has no email assigned. <https://app.contentful.com/spaces/${contentfulSpaceId}/entries/${artist.sys.id}|Add email >`
);
}
}

Expand Down
5 changes: 0 additions & 5 deletions pages/api/cron/show-submission-email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ async function sendEmails(
await sendEmail(artist, show, severity);
showEmailed = true;
await new Promise((resolve) => setTimeout(resolve, delay)); // Respect the rate limit
} else {
console.log(`${artist.name} does not have an email`);
await sendSlackMessage(
`*${artist.name}* has no email assigned to them. <https://app.contentful.com/spaces/${contentfulSpaceId}/entries/${artist.sys.id}|Add email >`
);
}
});

Expand Down

0 comments on commit c760709

Please sign in to comment.