( queryClient: QueryClient, organization: string, groupName: string, )
| 227 | }; |
| 228 | |
| 229 | const invalidateGroup = ( |
| 230 | queryClient: QueryClient, |
| 231 | organization: string, |
| 232 | groupName: string, |
| 233 | ) => |
| 234 | Promise.all([ |
| 235 | queryClient.invalidateQueries({ queryKey: groupsQueryKey }), |
| 236 | queryClient.invalidateQueries({ |
| 237 | queryKey: getGroupsByOrganizationQueryKey(organization), |
| 238 | }), |
| 239 | queryClient.invalidateQueries({ |
| 240 | queryKey: getRootGroupQueryKey(organization, groupName), |
| 241 | }), |
| 242 | ]); |
| 243 | |
| 244 | function sortGroupsByName<T extends Group>( |
| 245 | groups: readonly T[], |
no test coverage detected