MCPcopy Index your code
hub / github.com/simstudioai/sim / fetchLogsPage

Function fetchLogsPage

apps/sim/hooks/queries/logs.ts:126–141  ·  view source on GitHub ↗
(
  workspaceId: string,
  filters: LogFilters,
  cursor: string | null,
  signal?: AbortSignal
)

Source from the content-addressed store, hash-verified

124}
125
126async function fetchLogsPage(
127 workspaceId: string,
128 filters: LogFilters,
129 cursor: string | null,
130 signal?: AbortSignal
131): Promise<LogsPage> {
132 const apiData = await requestJson(listLogsContract, {
133 query: buildListQuery(workspaceId, filters, cursor),
134 signal,
135 })
136
137 return {
138 logs: apiData.data,
139 nextCursor: apiData.nextCursor,
140 }
141}
142
143export async function fetchLogDetail(
144 logId: string,

Callers 1

useLogsListFunction · 0.85

Calls 2

requestJsonFunction · 0.90
buildListQueryFunction · 0.70

Tested by

no test coverage detected