(organization: string)
| 104 | } |
| 105 | |
| 106 | export function groupsByUserIdInOrganization(organization: string) { |
| 107 | return { |
| 108 | ...groupsByOrganization(organization), |
| 109 | select: selectGroupsByUserId, |
| 110 | } satisfies UseQueryOptions<Group[], unknown, GroupsByUserId>; |
| 111 | } |
| 112 | |
| 113 | function selectGroupsByUserId(groups: Group[]): GroupsByUserId { |
| 114 | // Sorting here means that nothing has to be sorted for the individual |
no test coverage detected