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

Function putApp

site/src/api/queries/oauth2.ts:49–64  ·  view source on GitHub ↗
(queryClient: QueryClient)

Source from the content-addressed store, hash-verified

47};
48
49export const putApp = (queryClient: QueryClient) => {
50 return {
51 mutationFn: ({
52 id,
53 req,
54 }: {
55 id: string;
56 req: TypesGen.PutOAuth2ProviderAppRequest;
57 }) => API.putOAuth2ProviderApp(id, req),
58 onSuccess: async (app: TypesGen.OAuth2ProviderApp) => {
59 await queryClient.invalidateQueries({
60 queryKey: appKey(app.id),
61 });
62 },
63 };
64};
65
66export const deleteApp = (queryClient: QueryClient) => {
67 return {

Callers

nothing calls this directly

Calls 2

appKeyFunction · 0.85
putOAuth2ProviderAppMethod · 0.80

Tested by

no test coverage detected