( queryClient: QueryClient, organization: string, )
| 215 | }; |
| 216 | |
| 217 | export const removeMember = ( |
| 218 | queryClient: QueryClient, |
| 219 | organization: string, |
| 220 | ) => { |
| 221 | return { |
| 222 | mutationFn: ({ groupId, userId }: { groupId: string; userId: string }) => |
| 223 | API.removeMember(groupId, userId), |
| 224 | onSuccess: async (updatedGroup: Group) => |
| 225 | invalidateGroup(queryClient, organization, updatedGroup.name), |
| 226 | }; |
| 227 | }; |
| 228 | |
| 229 | const invalidateGroup = ( |
| 230 | queryClient: QueryClient, |
no test coverage detected