From 0866dc34940963afd0b0f941443e302e1e3bb18f Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Tue, 1 Aug 2023 21:42:48 +0530 Subject: [PATCH] fix: project invite --- apiserver/plane/api/views/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/plane/api/views/project.py b/apiserver/plane/api/views/project.py index 0589f4a61..d35f44ded 100644 --- a/apiserver/plane/api/views/project.py +++ b/apiserver/plane/api/views/project.py @@ -603,7 +603,7 @@ class AddMemberToProjectEndpoint(BaseAPIView): bulk_project_members = [] project_members = ProjectMember.objects.filter( - workspace=self.workspace, member_id__in=[member.get("member_id") for member in members] + workspace__slug=slug, member_id__in=[member.get("member_id") for member in members] ).values("member_id").annotate(sort_order_min=Min("sort_order")) for member in members: