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

Function formatAuditLogEntry

apps/sim/app/api/v1/audit-logs/format.ts:28–43  ·  view source on GitHub ↗
(log: DbAuditLog)

Source from the content-addressed store, hash-verified

26}
27
28export function formatAuditLogEntry(log: DbAuditLog): EnterpriseAuditLogEntry {
29 return {
30 id: log.id,
31 workspaceId: log.workspaceId,
32 actorId: log.actorId,
33 actorName: log.actorName,
34 actorEmail: log.actorEmail,
35 action: log.action,
36 resourceType: log.resourceType,
37 resourceId: log.resourceId,
38 resourceName: log.resourceName,
39 description: log.description,
40 metadata: log.metadata,
41 createdAt: log.createdAt.toISOString(),
42 }
43}

Callers 1

route.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected