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