( token: string, )
| 1126 | } |
| 1127 | |
| 1128 | export const getSquadInvitation = async ( |
| 1129 | token: string, |
| 1130 | ): Promise<SourceMember | null> => { |
| 1131 | try { |
| 1132 | const res = await gqlClient.request<SquadInvitation>( |
| 1133 | SQUAD_INVITATION_QUERY, |
| 1134 | { |
| 1135 | token, |
| 1136 | }, |
| 1137 | ); |
| 1138 | |
| 1139 | return res.member; |
| 1140 | } catch (err) { |
| 1141 | return null; |
| 1142 | } |
| 1143 | }; |
| 1144 | |
| 1145 | export const joinSquadInvitation = async ( |
| 1146 | params: SquadInvitationProps, |
no outgoing calls
no test coverage detected