( queryClient: QueryClient, organization: string, )
| 54 | }; |
| 55 | |
| 56 | export const deleteOrganizationRole = ( |
| 57 | queryClient: QueryClient, |
| 58 | organization: string, |
| 59 | ) => { |
| 60 | return { |
| 61 | mutationFn: (roleName: string) => |
| 62 | API.deleteOrganizationRole(organization, roleName), |
| 63 | onSuccess: async (_: unknown, roleName: string) => |
| 64 | await queryClient.invalidateQueries({ |
| 65 | queryKey: getRoleQueryKey(organization, roleName), |
| 66 | }), |
| 67 | }; |
| 68 | }; |
no test coverage detected