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

Function toAdminAuditLog

apps/sim/app/api/v1/admin/types.ts:667–684  ·  view source on GitHub ↗
(dbLog: DbAuditLog)

Source from the content-addressed store, hash-verified

665}
666
667export function toAdminAuditLog(dbLog: DbAuditLog): AdminAuditLog {
668 return {
669 id: dbLog.id,
670 workspaceId: dbLog.workspaceId,
671 actorId: dbLog.actorId,
672 actorName: dbLog.actorName,
673 actorEmail: dbLog.actorEmail,
674 action: dbLog.action,
675 resourceType: dbLog.resourceType,
676 resourceId: dbLog.resourceId,
677 resourceName: dbLog.resourceName,
678 description: dbLog.description,
679 metadata: dbLog.metadata,
680 ipAddress: dbLog.ipAddress,
681 userAgent: dbLog.userAgent,
682 createdAt: dbLog.createdAt.toISOString(),
683 }
684}

Callers 1

route.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected