MCPcopy
hub / github.com/simstudioai/sim / recordAudit

Function recordAudit

packages/audit/src/log.ts:35–39  ·  view source on GitHub ↗
(params: AuditLogParams)

Source from the content-addressed store, hash-verified

33 * Resolves actorName/actorEmail from the user table when both are omitted.
34 */
35export function recordAudit(params: AuditLogParams): void {
36 insertAuditLog(params).catch((error) => {
37 logger.error('Failed to record audit log', { error, action: params.action })
38 })
39}
40
41async function insertAuditLog(params: AuditLogParams): Promise<void> {
42 const ipAddress = params.request ? getClientIp(params.request) : undefined

Callers 15

deleteCredentialFunction · 0.90
performUpdateCredentialFunction · 0.90
performDeleteCredentialFunction · 0.90
performCreateJobFunction · 0.90
performUpdateJobFunction · 0.90
performExcludeOccurrenceFunction · 0.90
performDeleteJobFunction · 0.90
performCompleteJobFunction · 0.90
performFullDeployFunction · 0.90

Calls 2

insertAuditLogFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected