( input: UpdateSquadRulesInput, )
| 401 | } |
| 402 | |
| 403 | export const updateSquadRules = async ( |
| 404 | input: UpdateSquadRulesInput, |
| 405 | ): Promise<Pick<Squad, 'id' | 'rules'>> => { |
| 406 | const res = await gqlClient.request<{ |
| 407 | updateSquadRules: Pick<Squad, 'id' | 'rules'>; |
| 408 | }>(UPDATE_SQUAD_RULES_MUTATION, input); |
| 409 | |
| 410 | return res.updateSquadRules; |
| 411 | }; |
| 412 | |
| 413 | // sourceFeed always orders the pinned posts first, so the first page holds |
| 414 | // every pin and the rest of it is dropped. |
no outgoing calls
no test coverage detected