( variables: CreatePostInMultipleSourcesArgs, )
| 1122 | }>; |
| 1123 | |
| 1124 | export const createPostInMultipleSources = async ( |
| 1125 | variables: CreatePostInMultipleSourcesArgs, |
| 1126 | ) => { |
| 1127 | const { image, ...rest } = variables; |
| 1128 | const sanitized = { |
| 1129 | ...rest, |
| 1130 | ...(image instanceof File && image.size > 0 ? { image } : {}), |
| 1131 | }; |
| 1132 | const res = await gqlClient.request< |
| 1133 | { |
| 1134 | createPostInMultipleSources: CreatePostInMultipleSourcesResponse; |
| 1135 | }, |
| 1136 | CreatePostInMultipleSourcesArgs |
| 1137 | >(CREATE_POST_IN_MULTIPLE_SOURCES, sanitized); |
| 1138 | return res.createPostInMultipleSources; |
| 1139 | }; |
| 1140 | |
| 1141 | export interface VotePollResponse { |
| 1142 | numPollVotes: number; |
nothing calls this directly
no outgoing calls
no test coverage detected