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

Function removeMember

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

Source from the content-addressed store, hash-verified

215};
216
217export const removeMember = (
218 queryClient: QueryClient,
219 organization: string,
220) => {
221 return {
222 mutationFn: ({ groupId, userId }: { groupId: string; userId: string }) =>
223 API.removeMember(groupId, userId),
224 onSuccess: async (updatedGroup: Group) =>
225 invalidateGroup(queryClient, organization, updatedGroup.name),
226 };
227};
228
229const invalidateGroup = (
230 queryClient: QueryClient,

Callers 1

GroupMembersPageFunction · 0.90

Calls 1

invalidateGroupFunction · 0.85

Tested by

no test coverage detected