fix: prevent duplicate calendar account linking
What does this PR do?
Fixes #13302
- Bug fix (non-breaking change which fixes an issue)
Mandatory Tasks
- [x] Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.
@Amit91848 is attempting to deploy a commit to the cal Team on Vercel.
A member of the Team first needs to authorize it.
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link.
📦 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! 🙌
Hey @Amit91848 I wonder if there is a way to make this into a utility to prevent code duplication; also wondering if the check can be done before credential creation as this is undone later.
@Udit-takkar for lark if user tries to sign in using the same account, new credentials are overwriting the older ones. Should I change this? Will check for others.
@emrysal made changes.
Hey there, there is a merge conflict, can you take a look?