Skip to content

Commit 484a131

Browse files
committed
limit getProgramSlugs to top 250 sorted by applications
1 parent 9bd4f8c commit 484a131

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

apps/web/lib/fetchers/get-program-slugs.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,11 @@ export const getProgramSlugs = cache(async () =>
66
select: {
77
slug: true,
88
},
9+
orderBy: {
10+
applications: {
11+
_count: "desc",
12+
},
13+
},
14+
take: 250,
915
}),
1016
);

0 commit comments

Comments
 (0)