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

Function addMembers

site/src/api/queries/groups.ts:203–215  ·  view source on GitHub ↗
(queryClient: QueryClient, organization: string)

Source from the content-addressed store, hash-verified

201};
202
203export const addMembers = (queryClient: QueryClient, organization: string) => {
204 return {
205 mutationFn: ({
206 groupId,
207 userIds,
208 }: {
209 groupId: string;
210 userIds: string[];
211 }) => API.addMembers(groupId, userIds),
212 onSuccess: async (updatedGroup: Group) =>
213 invalidateGroup(queryClient, organization, updatedGroup.name),
214 };
215};
216
217export const removeMember = (
218 queryClient: QueryClient,

Callers 1

GroupMembersPageFunction · 0.90

Calls 1

invalidateGroupFunction · 0.85

Tested by

no test coverage detected