dev: fix sort order filter

This commit is contained in:
pablohashescobar 2023-08-01 17:41:22 +05:30
parent 080ab56fca
commit adfb35e50d

View File

@ -819,7 +819,7 @@ class ProjectJoinEndpoint(BaseAPIView):
smallest_sort_order = (
ProjectMember.objects.filter(
workspace__slug=slug, member=self.member
workspace__slug=slug, member=request.user
)
.aggregate(smallest=Min("sort_order"))
.get("smallest", 65535)