( sourceId: string, )
| 1239 | }; |
| 1240 | |
| 1241 | export const toggleFavoriteSource = async ( |
| 1242 | sourceId: string, |
| 1243 | ): Promise<EmptyResponse> => { |
| 1244 | const res = await gqlClient.request(TOGGLE_FAVORITE_SOURCE_MUTATION, { |
| 1245 | sourceId, |
| 1246 | }); |
| 1247 | |
| 1248 | return res.toggleFavoriteSource; |
| 1249 | }; |
| 1250 | |
| 1251 | export const verifyPermission = ( |
| 1252 | squad: Pick<Squad, 'currentMember'>, |