Function
editLfgPost
({
id,
input,
}: {
id: string;
input: LfgPostInput;
})
Source from the content-addressed store, hash-verified
| 577 | }; |
| 578 | |
| 579 | export const editLfgPost = async ({ |
| 580 | id, |
| 581 | input, |
| 582 | }: { |
| 583 | id: string; |
| 584 | input: LfgPostInput; |
| 585 | }): Promise<LfgPost> => { |
| 586 | const res = await gqlClient.request<{ editLfgPost: LfgPost }>( |
| 587 | EDIT_LFG_POST_MUTATION, |
| 588 | { id, input }, |
| 589 | ); |
| 590 | |
| 591 | return res.editLfgPost; |
| 592 | }; |
| 593 | |
| 594 | export const deleteLfgPost = async (id: string): Promise<void> => { |
| 595 | await gqlClient.request(DELETE_LFG_POST_MUTATION, { id }); |
Tested by
no test coverage detected