From 080ab56fcae5521c210b6c6a2909e9eb9365e827 Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Tue, 1 Aug 2023 17:36:52 +0530 Subject: [PATCH] dev: fix project join --- 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 49474a727..fa11065e5 100644 --- a/apiserver/plane/api/views/project.py +++ b/apiserver/plane/api/views/project.py @@ -819,7 +819,7 @@ class ProjectJoinEndpoint(BaseAPIView): smallest_sort_order = ( ProjectMember.objects.filter( - workspace_id=self.project.workspace_id, member=self.member + workspace__slug=slug, member=self.member ) .aggregate(smallest=Min("sort_order")) .get("smallest", 65535)