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

Function fetchTopReaderById

packages/shared/src/lib/topReader.ts:19–29  ·  view source on GitHub ↗
(
  badgeId: string,
)

Source from the content-addressed store, hash-verified

17};
18
19export const fetchTopReaderById = async (
20 badgeId: string,
21): Promise<TopReader> => {
22 const { topReaderBadgeById } = await gqlClient.request<{
23 topReaderBadgeById: TopReader;
24 }>(TOP_READER_BADGE_BY_ID, {
25 id: badgeId,
26 });
27
28 return topReaderBadgeById;
29};

Callers 2

useTopReaderFunction · 0.90
getStaticPropsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected