dev: update sort order calculation

This commit is contained in:
pablohashescobar 2023-08-01 17:46:55 +05:30
parent adfb35e50d
commit 056656ef1b

View File

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