forked from github/plane
dev: fix sort order filter
This commit is contained in:
parent
080ab56fca
commit
adfb35e50d
@ -819,7 +819,7 @@ class ProjectJoinEndpoint(BaseAPIView):
|
|||||||
|
|
||||||
smallest_sort_order = (
|
smallest_sort_order = (
|
||||||
ProjectMember.objects.filter(
|
ProjectMember.objects.filter(
|
||||||
workspace__slug=slug, member=self.member
|
workspace__slug=slug, member=request.user
|
||||||
)
|
)
|
||||||
.aggregate(smallest=Min("sort_order"))
|
.aggregate(smallest=Min("sort_order"))
|
||||||
.get("smallest", 65535)
|
.get("smallest", 65535)
|
||||||
|
Loading…
Reference in New Issue
Block a user