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

Function getGenerateBriefingMutationOptions

packages/shared/src/graphql/posts.ts:1556–1569  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1554`;
1555
1556export const getGenerateBriefingMutationOptions = () => {
1557 return {
1558 mutationFn: async ({
1559 type = BriefingType.Daily,
1560 }: {
1561 type: BriefingType;
1562 }) => {
1563 const result = await gqlClient.request<{
1564 generateBriefing: Pick<Post, 'id'> & Pick<LoggedUser, 'balance'>;
1565 }>(GENERATE_BRIEFING, { type });
1566 return result.generateBriefing;
1567 },
1568 };
1569};
1570
1571export const defautRefetchMs = 4000;
1572export const briefRefetchIntervalMs = defautRefetchMs;

Callers 2

BriefCardDefaultFunction · 0.90
useGenerateBriefFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected