-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
feat: cal video no show workflow triggers #18373
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (01/02/25)1 reviewer was added to this PR based on Keith Williams's automation. "Add foundation team as reviewer" took an action on this PR • (01/02/25)1 reviewer was added to this PR based on Keith Williams's automation. |
triggerEvent: WorkflowTriggerEvents.AFTER_HOSTS_CAL_VIDEO_NO_SHOW, | ||
bookingId: booking.id, | ||
// Prevents null values from being serialized | ||
workflow: { ...workflow, time: workflow.time, timeUnit: workflow.timeUnit }, | ||
calendarEvent, | ||
emailAttendeeSendToOverride, | ||
smsReminderNumber, | ||
hideBranding, | ||
seatReferenceUid, | ||
}, | ||
{ scheduledAt } |
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.
Pass the complete payload that is need to trigger workflows
} | ||
} | ||
|
||
export const triggerGuestNoShowWorkflow = async (payload: string): Promise<void> => { |
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.
handles triggering workflow
@@ -75,11 +75,11 @@ export default function EditOAuthClientWebhooks() { | |||
}, | |||
{ | |||
value: WebhookTriggerEvents.AFTER_HOSTS_CAL_VIDEO_NO_SHOW, | |||
label: "after_hosts_cal_video_no_show", | |||
label: "after_hosts_cal_video_no_show_trigger", |
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.
Just changed the name of key
|
||
await markHostsAsNoShowInBooking(booking, hostsThatDidntJoinTheCall); | ||
} | ||
|
||
export const triggerHostNoShowWorkflow = async (payload: string): Promise<void> => { |
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.
this handles the logic to execute all workflows
What does this PR do?
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
Check if task was added in Task Table in prisma studio
you can also execute it by making request to http://localhost:3000/api/tasks/cron