-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Changes #17858
Added Changes #17858
Conversation
Someone is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
Abu seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Hey there and thank you for opening this pull request! 👋🏼 We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted. Details:
|
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (11/26/24)1 reviewer was added to this PR based on Keith Williams's automation. "Add community label" took an action on this PR • (11/26/24)1 label was added to this PR based on Keith Williams's automation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution 🙏
Unfortunately this doesn't seems to solve the original issue at #17858
Could you elaborate on how these changes are preventing scheduled reminders to stop being for cancelled bookings? Also could you add unit tests or some kind of evidence that your solution works?
May you be well 🙏
if (triggerEvent === WorkflowTriggerEvents.EVENT_CANCELLED) { | ||
// Handle cancellation notifications | ||
try { | ||
if (!sendTo) throw new Error("No email addresses provided"); | ||
const addressees = Array.isArray(sendTo) ? sendTo : [sendTo]; | ||
const promises = addressees.map((email) => sendEmail({ to: email }, triggerEvent)); | ||
await Promise.all(promises); | ||
} catch (error) { | ||
log.error("Error sending cancellation email"); | ||
} | ||
} else if ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I'm missing something, but could you elaborate on how is this different from the logic below where this belonged?
E2E results are ready! |
This PR is being marked as stale due to inactivity. |
Close due to inactive |
What does this PR do?
Bug fix
Add the necessary check so that email doesn't send to a cancelled event