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

Function updateOrganizationRole

site/src/api/queries/roles.ts:42–54  ·  view source on GitHub ↗
(
	queryClient: QueryClient,
	organization: string,
)

Source from the content-addressed store, hash-verified

40};
41
42export const updateOrganizationRole = (
43 queryClient: QueryClient,
44 organization: string,
45) => {
46 return {
47 mutationFn: (request: Role) =>
48 API.updateOrganizationRole(organization, request),
49 onSuccess: async (updatedRole: Role) =>
50 await queryClient.invalidateQueries({
51 queryKey: getRoleQueryKey(organization, updatedRole.name),
52 }),
53 };
54};
55
56export const deleteOrganizationRole = (
57 queryClient: QueryClient,

Callers 1

CreateEditRolePageFunction · 0.90

Calls 2

getRoleQueryKeyFunction · 0.85

Tested by

no test coverage detected