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

Function getMyLfgPosts

packages/shared/src/features/lfg/graphql.ts:509–516  ·  view source on GitHub ↗
(first: number)

Source from the content-addressed store, hash-verified

507};
508
509export const getMyLfgPosts = async (first: number): Promise<LfgPastPost[]> => {
510 const res = await gqlBatchRequest<{ myLfgPosts: Connection<LfgPastPost> }>(
511 MY_LFG_POSTS_QUERY,
512 { first },
513 );
514
515 return res.myLfgPosts.edges.map(({ node }) => withLapsedLfgStatus(node));
516};
517
518export const getMyLfgPost = async (): Promise<LfgPost | null> => {
519 const res = await gqlBatchRequest<{ myLfgPost: LfgPost | null }>(

Callers 1

myLfgPostsQueryOptionsFunction · 0.90

Calls 1

withLapsedLfgStatusFunction · 0.90

Tested by

no test coverage detected