Skip to content

Scheduling infrastructure for absolutely everyone.

Adds sort order to free event type 404 (#2278)

Omar López94006156d75f
diff --git a/apps/web/pages/[user]/[type].tsx b/apps/web/pages/[user]/[type].tsx
index d991b81f3ff..569b1d1ff6e 100644
--- a/apps/web/pages/[user]/[type].tsx
+++ b/apps/web/pages/[user]/[type].tsx
@@ -169,6 +169,14 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
},
],
},
+ orderBy: [
+ {
+ position: "desc",
+ },
+ {
+ id: "asc",
+ },
+ ],
select: {
id: true,
},