MCPcopy Index your code
hub / github.com/coder/coder / groupsByUserIdInOrganization

Function groupsByUserIdInOrganization

site/src/api/queries/groups.ts:106–111  ·  view source on GitHub ↗
(organization: string)

Source from the content-addressed store, hash-verified

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

Callers 1

OrganizationMembersPageFunction · 0.90

Calls 1

groupsByOrganizationFunction · 0.85

Tested by

no test coverage detected