( sourceId: string, )
| 1209 | }; |
| 1210 | |
| 1211 | export const toggleFavoriteSource = async ( |
| 1212 | sourceId: string, |
| 1213 | ): Promise<EmptyResponse> => { |
| 1214 | const res = await gqlClient.request(TOGGLE_FAVORITE_SOURCE_MUTATION, { |
| 1215 | sourceId, |
| 1216 | }); |
| 1217 | |
| 1218 | return res.toggleFavoriteSource; |
| 1219 | }; |
| 1220 | |
| 1221 | export const verifyPermission = ( |
| 1222 | squad: Pick<Squad, 'currentMember'>, |