MCPcopy Create free account
hub / github.com/TheOrcDev/github-creature / getFollowersLeaderboard

Function getFollowersLeaderboard

server/creatures.ts:62–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60}
61
62export async function getFollowersLeaderboard() {
63 try {
64 const creatures = await db.query.creatures.findMany({
65 orderBy: (creatures, { desc }) => desc(creatures.followers),
66 limit: 10,
67 });
68 return creatures;
69 } catch (error) {
70 console.error(error);
71 throw new Error("Failed to get followers leaderboard");
72 }
73}
74
75export async function getStarsLeaderboard() {
76 try {

Callers 1

FollowersLeaderboardFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected