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

Function deleteOrganizationRole

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

Source from the content-addressed store, hash-verified

54};
55
56export const deleteOrganizationRole = (
57 queryClient: QueryClient,
58 organization: string,
59) => {
60 return {
61 mutationFn: (roleName: string) =>
62 API.deleteOrganizationRole(organization, roleName),
63 onSuccess: async (_: unknown, roleName: string) =>
64 await queryClient.invalidateQueries({
65 queryKey: getRoleQueryKey(organization, roleName),
66 }),
67 };
68};

Callers 1

CustomRolesPageFunction · 0.90

Calls 1

getRoleQueryKeyFunction · 0.85

Tested by

no test coverage detected