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

Function addOrganizationMember

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

Source from the content-addressed store, hash-verified

112};
113
114export const addOrganizationMember = (queryClient: QueryClient, id: string) => {
115 return {
116 mutationFn: (userId: string) => {
117 return API.addOrganizationMember(id, userId);
118 },
119
120 onSuccess: async () => {
121 await queryClient.invalidateQueries({
122 queryKey: ["organization", id, "members"],
123 });
124 },
125 };
126};
127
128export const removeOrganizationMember = (
129 queryClient: QueryClient,

Callers 1

OrganizationMembersPageFunction · 0.90

Calls 1

addOrganizationMemberMethod · 0.80

Tested by

no test coverage detected