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

Function toggleFavoriteSource

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

Source from the content-addressed store, hash-verified

1239};
1240
1241export const toggleFavoriteSource = async (
1242 sourceId: string,
1243): Promise<EmptyResponse> => {
1244 const res = await gqlClient.request(TOGGLE_FAVORITE_SOURCE_MUTATION, {
1245 sourceId,
1246 });
1247
1248 return res.toggleFavoriteSource;
1249};
1250
1251export const verifyPermission = (
1252 squad: Pick<Squad, 'currentMember'>,

Callers 1

useSquadFavoriteFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected