MCPcopy Create free account
hub / github.com/dailydotdev/apps / fetchTopReaders

Function fetchTopReaders

packages/shared/src/lib/topReader.ts:5–17  ·  view source on GitHub ↗
(
  limit = 5,
  userId: string,
)

Source from the content-addressed store, hash-verified

3import { TOP_READER_BADGE, TOP_READER_BADGE_BY_ID } from '../graphql/users';
4
5export const fetchTopReaders = async (
6 limit = 5,
7 userId: string,
8): Promise<TopReader[]> => {
9 const { topReaderBadge } = await gqlClient.request<{
10 topReaderBadge: TopReader[];
11 }>(TOP_READER_BADGE, {
12 limit,
13 userId,
14 });
15
16 return topReaderBadge;
17};
18
19export const fetchTopReaderById = async (
20 badgeId: string,

Callers 2

useTopReaderFunction · 0.90
GameCenterPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected