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

Function getSquadInvitation

packages/shared/src/graphql/squads.ts:1128–1143  ·  view source on GitHub ↗
(
  token: string,
)

Source from the content-addressed store, hash-verified

1126}
1127
1128export 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
1145export const joinSquadInvitation = async (
1146 params: SquadInvitationProps,

Callers 2

SquadReferralFunction · 0.90
getStaticPropsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected