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

Function removeOrganizationMember

site/src/api/queries/organizations.ts:128–143  ·  view source on GitHub ↗
(
	queryClient: QueryClient,
	id: string,
)

Source from the content-addressed store, hash-verified

126};
127
128export const removeOrganizationMember = (
129 queryClient: QueryClient,
130 id: string,
131) => {
132 return {
133 mutationFn: (userId: string) => {
134 return API.removeOrganizationMember(id, userId);
135 },
136
137 onSuccess: async () => {
138 await queryClient.invalidateQueries({
139 queryKey: ["organization", id, "members"],
140 });
141 },
142 };
143};
144
145export const updateOrganizationMemberRoles = (
146 queryClient: QueryClient,

Callers 1

OrganizationMembersPageFunction · 0.90

Calls 1

Tested by

no test coverage detected