dev: fix project join

This commit is contained in:
pablohashescobar 2023-08-01 17:36:52 +05:30
parent 62340b0158
commit 080ab56fca

View File

@ -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)