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

Function toggleFavoriteSource

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

Source from the content-addressed store, hash-verified

1228};
1229
1230export const toggleFavoriteSource = async (
1231 sourceId: string,
1232): Promise<EmptyResponse> => {
1233 const res = await gqlClient.request(TOGGLE_FAVORITE_SOURCE_MUTATION, {
1234 sourceId,
1235 });
1236
1237 return res.toggleFavoriteSource;
1238};
1239
1240export const verifyPermission = (
1241 squad: Pick<Squad, 'currentMember'>,

Callers 1

useSquadFavoriteFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected