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

Function getTopMembersBySquad

packages/shared/src/graphql/squads.ts:330–344  ·  view source on GitHub ↗
(
  sourceId: string,
  limit = MAX_TOP_MEMBERS_BY_SQUAD,
)

Source from the content-addressed store, hash-verified

328};
329
330export async function getTopMembersBySquad(
331 sourceId: string,
332 limit = MAX_TOP_MEMBERS_BY_SQUAD,
333): Promise<UserShortProfile[]> {
334 const res = await gqlClient.request<TopMembersBySquadData>(
335 TOP_MEMBERS_BY_SQUAD_QUERY,
336 {
337 sourceId,
338 since: getTopMembersBySquadSince(),
339 limit,
340 },
341 );
342
343 return res.topMembersBySquad;
344}
345
346export const SQUAD_STATIC_FIELDS_QUERY = gql`
347 query Source($handle: ID!) {

Callers 1

getSquadFunction · 0.85

Calls 1

Tested by

no test coverage detected