( sourceId: string, limit = MAX_TOP_MEMBERS_BY_SQUAD, )
| 328 | }; |
| 329 | |
| 330 | export 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 | |
| 346 | export const SQUAD_STATIC_FIELDS_QUERY = gql` |
| 347 | query Source($handle: ID!) { |
no test coverage detected