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

Function buildListQuery

apps/sim/hooks/queries/logs.ts:107–119  ·  view source on GitHub ↗
(workspaceId: string, filters: LogFilters, cursor: string | null)

Source from the content-addressed store, hash-verified

105}
106
107function buildListQuery(workspaceId: string, filters: LogFilters, cursor: string | null) {
108 const params = new URLSearchParams()
109 applyFilterParams(params, filters)
110
111 return {
112 workspaceId,
113 limit: filters.limit,
114 sortBy: filters.sortBy,
115 sortOrder: filters.sortOrder,
116 ...(cursor ? { cursor } : {}),
117 ...Object.fromEntries(params.entries()),
118 }
119}
120
121interface LogsPage {
122 logs: WorkflowLogSummary[]

Callers 1

fetchLogsPageFunction · 0.70

Calls 1

applyFilterParamsFunction · 0.85

Tested by

no test coverage detected