(queryClient: QueryClient)
| 60 | }; |
| 61 | |
| 62 | export const deleteOrganization = (queryClient: QueryClient) => { |
| 63 | return { |
| 64 | mutationFn: (organizationId: string) => |
| 65 | API.deleteOrganization(organizationId), |
| 66 | |
| 67 | onSuccess: async () => { |
| 68 | await queryClient.invalidateQueries({ queryKey: meKey }); |
| 69 | await queryClient.invalidateQueries({ queryKey: organizationsKey }); |
| 70 | }, |
| 71 | }; |
| 72 | }; |
| 73 | |
| 74 | export const organizationMembersKey = (id: string, req: UsersRequest) => [ |
| 75 | "organization", |
no test coverage detected