mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
dev: fix project join
This commit is contained in:
parent
62340b0158
commit
080ab56fca
@ -819,7 +819,7 @@ class ProjectJoinEndpoint(BaseAPIView):
|
|||||||
|
|
||||||
smallest_sort_order = (
|
smallest_sort_order = (
|
||||||
ProjectMember.objects.filter(
|
ProjectMember.objects.filter(
|
||||||
workspace_id=self.project.workspace_id, member=self.member
|
workspace__slug=slug, member=self.member
|
||||||
)
|
)
|
||||||
.aggregate(smallest=Min("sort_order"))
|
.aggregate(smallest=Min("sort_order"))
|
||||||
.get("smallest", 65535)
|
.get("smallest", 65535)
|
||||||
|
Loading…
Reference in New Issue
Block a user