MCPcopy Create free account
hub / github.com/PostHog/duckgres / useUpdateUser

Function useUpdateUser

controlplane/admin/ui/src/hooks/useApi.ts:220–227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

218 queryKey: ["warehouse-status", id],
219 queryFn: () => api.warehouseStatus(id!),
220 enabled: !!id,
221 refetchInterval: opts?.refetchInterval ?? false,
222 retry: 1,
223 });
224}
225
226// GET /database-name/check — availability probe for the provision form.
227// Debounced/disabled by the caller via `enabled`.
228export function useDatabaseNameAvailable(name: string, enabled: boolean) {
229 return useQuery<DatabaseNameCheck>({
230 queryKey: ["database-name-check", name],

Callers 1

EditUserDialogFunction · 0.90

Calls 1

updateUserMethod · 0.80

Tested by

no test coverage detected