mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
dev: update sort order calculation
This commit is contained in:
parent
adfb35e50d
commit
056656ef1b
@ -823,9 +823,14 @@ class ProjectJoinEndpoint(BaseAPIView):
|
||||
)
|
||||
.aggregate(smallest=Min("sort_order"))
|
||||
.get("smallest", 65535)
|
||||
- 10000
|
||||
)
|
||||
|
||||
if smallest_sort_order is None:
|
||||
smallest_sort_order = 55535
|
||||
else:
|
||||
smallest_sort_order = smallest_sort_order - 10000
|
||||
|
||||
|
||||
workspace_role = workspace_member.role
|
||||
workspace = workspace_member.workspace
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user