mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: remove caching when joining workspace (#4192)
This commit is contained in:
parent
54196aafc0
commit
c670a31836
@ -170,6 +170,12 @@ class WorkspaceJoinEndpoint(BaseAPIView):
|
|||||||
|
|
||||||
@invalidate_cache(path="/api/workspaces/", user=False)
|
@invalidate_cache(path="/api/workspaces/", user=False)
|
||||||
@invalidate_cache(path="/api/users/me/workspaces/")
|
@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):
|
def post(self, request, slug, pk):
|
||||||
workspace_invite = WorkspaceMemberInvite.objects.get(
|
workspace_invite = WorkspaceMemberInvite.objects.get(
|
||||||
pk=pk, workspace__slug=slug
|
pk=pk, workspace__slug=slug
|
||||||
|
Loading…
Reference in New Issue
Block a user