mirror of
https://gitbruv.vercel.app/api/git/bruv/gitbruv.git
synced 2025-12-20 23:24:09 +01:00
fix
This commit is contained in:
parent
3504711521
commit
125c6fdd6a
1 changed files with 1 additions and 1 deletions
|
|
@ -816,7 +816,7 @@ export async function getPublicUsers(sortBy: "newest" | "oldest" = "newest", lim
|
||||||
avatarUrl: users.avatarUrl,
|
avatarUrl: users.avatarUrl,
|
||||||
bio: users.bio,
|
bio: users.bio,
|
||||||
createdAt: users.createdAt,
|
createdAt: users.createdAt,
|
||||||
repoCount: sql<number>`(SELECT COUNT(*) FROM repositories WHERE repositories.owner_id = ${users.id} AND repositories.visibility = 'public')`.as("repo_count"),
|
repoCount: sql<number>`(SELECT COUNT(*) FROM repositories WHERE repositories.owner_id = users.id AND repositories.visibility = 'public')`.as("repo_count"),
|
||||||
})
|
})
|
||||||
.from(users)
|
.from(users)
|
||||||
.orderBy(sortBy === "newest" ? desc(users.createdAt) : users.createdAt)
|
.orderBy(sortBy === "newest" ? desc(users.createdAt) : users.createdAt)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue