(queryClient: QueryClient, organization: string)
| 178 | }; |
| 179 | |
| 180 | export const patchGroup = (queryClient: QueryClient, organization: string) => { |
| 181 | return { |
| 182 | mutationFn: ({ |
| 183 | groupId, |
| 184 | ...request |
| 185 | }: PatchGroupRequest & { groupId: string }) => |
| 186 | API.patchGroup(groupId, request), |
| 187 | onSuccess: async (updatedGroup: Group) => |
| 188 | invalidateGroup(queryClient, organization, updatedGroup.name), |
| 189 | }; |
| 190 | }; |
| 191 | |
| 192 | export const deleteGroup = (queryClient: QueryClient, organization: string) => { |
| 193 | return { |
no test coverage detected