( sourceId: string, )
| 1228 | }; |
| 1229 | |
| 1230 | export const toggleFavoriteSource = async ( |
| 1231 | sourceId: string, |
| 1232 | ): Promise<EmptyResponse> => { |
| 1233 | const res = await gqlClient.request(TOGGLE_FAVORITE_SOURCE_MUTATION, { |
| 1234 | sourceId, |
| 1235 | }); |
| 1236 | |
| 1237 | return res.toggleFavoriteSource; |
| 1238 | }; |
| 1239 | |
| 1240 | export const verifyPermission = ( |
| 1241 | squad: Pick<Squad, 'currentMember'>, |