-
Notifications
You must be signed in to change notification settings - Fork 11.1k
fix: enable calendar sync for API v2 bookings with API key auth #25049
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
fix: enable calendar sync for API v2 bookings with API key auth #25049
Conversation
Fixes calcom#25009 API v2 bookings created with API key authentication (non-OAuth) were not syncing to connected calendars or sending confirmation emails. The issue was that areCalendarEventsEnabled flag was only set for OAuth platform bookings but missing for regular API key bookings. Added areCalendarEventsEnabled: true flag to the regular API booking flow in input.service.ts to ensure calendar events are created and confirmation emails are sent for non-OAuth API bookings. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
|
@vigneshpamu is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
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.
No issues found across 1 file
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.
No issues found across 3 files
dhairyashiil
left a comment
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.
Please attach before and after loom video, making it draft until then.
anikdhabal
left a comment
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.
Looks good
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.
No issues found across 2 files
E2E results are ready! |
Ryukemeister
left a comment
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.
LGTM, nice one @vigneshpamu!
Hey, i mistakely closed the PR |
Hey am i supposed to close the PR ? |
| }; | ||
| } else { | ||
| Object.assign(newRequest, { userId }); | ||
| Object.assign(newRequest, { userId, areCalendarEventsEnabled: true }); |
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.
We already set areCalendarEventsEnabled default to true. So it's not the correct fix
|
@vigneshpamu thanks for your work, im investigating the issue |
Summary
Fixes #25009
API v2 bookings created with API key authentication (non-OAuth) were not syncing to connected calendars or sending confirmation emails. This PR adds the missing
areCalendarEventsEnabled: trueflag tothe regular API booking flow.
Changes Made
apps/api/v2/src/ee/bookings/2024-08-13/services/input.service.tsareCalendarEventsEnabled: trueparameter on line 128 in the non-OAuth booking flow (else block)Before