fix: remove caching when joining workspace (#4192)

This commit is contained in:
Nikhil 2024-04-15 19:46:44 +05:30 committed by GitHub
parent 54196aafc0
commit c670a31836
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -170,6 +170,12 @@ class WorkspaceJoinEndpoint(BaseAPIView):
@invalidate_cache(path="/api/workspaces/", user=False)
@invalidate_cache(path="/api/users/me/workspaces/")
@invalidate_cache(
path="/api/workspaces/:slug/members/",
user=False,
multiple=True,
url_params=True,
)
def post(self, request, slug, pk):
workspace_invite = WorkspaceMemberInvite.objects.get(
pk=pk, workspace__slug=slug