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

Function decodeCursor

apps/sim/app/api/v1/audit-logs/query.ts:18–24  ·  view source on GitHub ↗
(cursor: string)

Source from the content-addressed store, hash-verified

16}
17
18function decodeCursor(cursor: string): CursorData | null {
19 try {
20 return JSON.parse(Buffer.from(cursor, 'base64').toString())
21 } catch {
22 return null
23 }
24}
25
26export interface AuditLogFilterParams {
27 action?: string

Callers 1

buildCursorConditionFunction · 0.70

Calls 2

parseMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected