-
Notifications
You must be signed in to change notification settings - Fork 902
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: team issues #2050
fix: team issues #2050
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Ignored Deployments
|
Thank you for following the naming conventions for pull request titles! 🙏 |
packages/lib/user/service.tsInstead of accessing the properties of const { role, teamId, team: { memberships: teamMemberships } } = currentUserMembership;
|
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.
@Dhruwang thanks for fixing the two issues 😊🚀
I changed the membership revalidation in a way that I explicitly delete the membership using the service (which also revalidates the cache).
Your code had the issue that it revalidated the cache before removing the user (together with the membership) from the database which could still lead to an inconsistent cache.
What does this PR do?
Fixes #2044 #2042
How should this be tested?
Checklist
Required
pnpm build
console.logs
git pull origin main
Appreciated