(first: number)
| 507 | }; |
| 508 | |
| 509 | export 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 | |
| 518 | export const getMyLfgPost = async (): Promise<LfgPost | null> => { |
| 519 | const res = await gqlBatchRequest<{ myLfgPost: LfgPost | null }>( |
no test coverage detected