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

Function toggleFavoriteSource

packages/shared/src/graphql/squads.ts:1211–1219  ·  view source on GitHub ↗
(
  sourceId: string,
)

Source from the content-addressed store, hash-verified

1209};
1210
1211export const toggleFavoriteSource = async (
1212 sourceId: string,
1213): Promise<EmptyResponse> => {
1214 const res = await gqlClient.request(TOGGLE_FAVORITE_SOURCE_MUTATION, {
1215 sourceId,
1216 });
1217
1218 return res.toggleFavoriteSource;
1219};
1220
1221export const verifyPermission = (
1222 squad: Pick<Squad, 'currentMember'>,

Callers 1

useSquadFavoriteFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected