( token: string, )
| 643 | } |
| 644 | |
| 645 | export const getSquadInvitation = async ( |
| 646 | token: string, |
| 647 | ): Promise<SourceMember | null> => { |
| 648 | try { |
| 649 | const res = await gqlClient.request<SquadInvitation>( |
| 650 | SQUAD_INVITATION_QUERY, |
| 651 | { |
| 652 | token, |
| 653 | }, |
| 654 | ); |
| 655 | |
| 656 | return res.member; |
| 657 | } catch (err) { |
| 658 | return null; |
| 659 | } |
| 660 | }; |
| 661 | |
| 662 | export const joinSquadInvitation = async ( |
| 663 | params: SquadInvitationProps, |
no outgoing calls
no test coverage detected