fix: 15636 Sort order of team event types incorrect (#15660)

* Fix:15636 event types sort order on team page

* fix type-check

---------

Co-authored-by: Anik Dhabal Babu <[email protected]>
Co-authored-by: Amit Sharma <[email protected]>
Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
authored and GitHub committed 2024-07-08 14:31:27 +01:00
1 parent 59bffa075f
commit 5bbc025494
1 file changed
+8
@@ -129,6 +129,14 @@ export async function getTeamWithMembers(args: {
not: SchedulingType.MANAGED,
},
},
orderBy: [
{
position: "desc",
},
{
id: "asc",
},
] as Prisma.EventTypeOrderByWithRelationInput[],
select: {
hosts: {
select: {