Skip to content

fix: Credential of type video wrong id on bookingReference#9281

Merged
zomars merged 17 commits intomainfrom
fix-zoom-meetings-dont-get-removed-from-zoom-app-6739-cal-941
Jul 6, 2023
Merged

fix: Credential of type video wrong id on bookingReference#9281
zomars merged 17 commits intomainfrom
fix-zoom-meetings-dont-get-removed-from-zoom-app-6739-cal-941

Conversation

@alannnc
Copy link
Copy Markdown
Contributor

@alannnc alannnc commented Jun 1, 2023

What does this PR do?

  • Fixes wrong credentialId being saved for bookingReferences, it was always saving credential of type calendar.

Fixes #6739 #8831

Environment: Staging(main branch) / Production

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How should this be tested?

  • Create an event with location zoom
  • Create a booking for said event
  • Cancel that booking and take look in zoom app if booking was deleted

Checklist

  • I haven't added tests that prove my fix is effective or that my feature works

@alannnc alannnc linked an issue Jun 1, 2023 that may be closed by this pull request
@linear
Copy link
Copy Markdown

linear bot commented Jun 1, 2023

CAL-941 Zoom meetings don't get removed from zoom app.

While rejecting or cancelling a booking with event type with zoom. Event should be removed from zoom app too.

@vercel
Copy link
Copy Markdown

vercel bot commented Jun 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 19, 2024 2:59pm
cal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 19, 2024 2:59pm
cal-staging 🔄 Building (Inspect) Mar 19, 2024 2:59pm
ui ❌ Failed (Inspect) Mar 19, 2024 2:59pm
web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 19, 2024 2:59pm
web-staging 🔄 Building (Inspect) Visit Preview Mar 19, 2024 2:59pm
website ❌ Failed (Inspect) Mar 19, 2024 2:59pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
dev ⬜️ Ignored (Inspect) Mar 19, 2024 2:59pm

@github-actions github-actions bot added Medium priority Created by Linear-GitHub Sync Stale 🐛 bug Something isn't working labels Jun 1, 2023
@alannnc alannnc changed the title Fix: Credential of type video wrong id on bookingReference fix: Credential of type video wrong id on bookingReference Jun 1, 2023
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jun 1, 2023

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@deploysentinel
Copy link
Copy Markdown

deploysentinel bot commented Jun 1, 2023

No failed tests 🎉

@github-actions github-actions bot removed the Stale label Jun 2, 2023
@alannnc alannnc requested a review from zomars June 2, 2023 21:33
zomars
zomars previously approved these changes Jun 2, 2023
type: "daily_video",
key: { apikey: process.env.DAILY_API_KEY },
userId: +new Date().getTime(),
userId: 0,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sometimes credentialId or userId should be saved to DB, but prisma will error if tries to save said values. I think we are better off using 0.
@zomars

@github-actions github-actions bot removed the Stale label Jul 3, 2023
Copy link
Copy Markdown
Contributor

@zomars zomars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and working! Nice job @alannnc 🙏🏽

Ship it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working core area: core, team members only Medium priority Created by Linear-GitHub Sync

Projects

No open projects
Status: Medium priority

Development

Successfully merging this pull request may close these issues.

[CAL-941] Zoom meetings don't get removed from zoom app.

4 participants