logAuditEvent
chainalign-backend / services/auditService / logAuditEvent
Function: logAuditEvent()
logAuditEvent(
tenantId,userId,actionType,details,rationale?):Promise<void>
Defined in: services/auditService.js:11
Logs an audit event to the database.
Parameters
tenantId
string
The ID of the tenant.
userId
string
The ID of the user performing the action.
actionType
string
The type of action (e.g., 'CREATE_CONNECTION', 'UPDATE_PLAN').
details
any
A JSON object containing details of the action.
rationale?
string
Optional: A free-text explanation or justification for the action.
Returns
Promise<void>