(queryClient: QueryClient, organization: string)
| 201 | }; |
| 202 | |
| 203 | export const addMembers = (queryClient: QueryClient, organization: string) => { |
| 204 | return { |
| 205 | mutationFn: ({ |
| 206 | groupId, |
| 207 | userIds, |
| 208 | }: { |
| 209 | groupId: string; |
| 210 | userIds: string[]; |
| 211 | }) => API.addMembers(groupId, userIds), |
| 212 | onSuccess: async (updatedGroup: Group) => |
| 213 | invalidateGroup(queryClient, organization, updatedGroup.name), |
| 214 | }; |
| 215 | }; |
| 216 | |
| 217 | export const removeMember = ( |
| 218 | queryClient: QueryClient, |
no test coverage detected