( variables: Partial<UpdatePostModerationProps>, )
| 1428 | `; |
| 1429 | |
| 1430 | export const updateSourcePostModeration = async ( |
| 1431 | variables: Partial<UpdatePostModerationProps>, |
| 1432 | ): Promise<SourcePostModeration> => { |
| 1433 | const res = await gqlClient.request( |
| 1434 | UPDATE_SOURCE_POST_MODERATION_MUTATION, |
| 1435 | variables, |
| 1436 | ); |
| 1437 | |
| 1438 | return res.updateSourcePostModeration; |
| 1439 | }; |
| 1440 | |
| 1441 | export const checkCanBoostByUser = (post: Post, userId: string) => |
| 1442 | (post?.author?.id && post?.author?.id === userId) || |
nothing calls this directly
no outgoing calls
no test coverage detected