MCPcopy
hub / github.com/simstudioai/sim / fetchGeneralSettings

Function fetchGeneralSettings

apps/sim/hooks/queries/general-settings.ts:65–68  ·  view source on GitHub ↗

* Fetch general settings from API

(signal?: AbortSignal)

Source from the content-addressed store, hash-verified

63 * Fetch general settings from API
64 */
65async function fetchGeneralSettings(signal?: AbortSignal): Promise<GeneralSettings> {
66 const { data } = await requestJson(getUserSettingsContract, { signal })
67 return mapGeneralSettingsResponse(data)
68}
69
70/**
71 * Hook to fetch general settings.

Callers 2

useGeneralSettingsFunction · 0.85
prefetchGeneralSettingsFunction · 0.85

Calls 2

requestJsonFunction · 0.90

Tested by

no test coverage detected