Expose session ID in audit log

This commit is contained in:
Taras Kushnir
2026-04-16 17:41:21 +02:00
parent a8e51202eb
commit f9c3794061
+2
View File
@@ -44,6 +44,7 @@ type UserAuditLog struct {
TableName string
Time string
Source string
SessionID string
}
var (
@@ -310,6 +311,7 @@ func (s *Server) newUserAuditLog(ctx context.Context, log *dbgen.AuditLog) (*Use
Time: log.CreatedAt.Time.Format(auditLogTimeFormat),
Action: string(log.Action),
TableName: log.EntityTable,
SessionID: log.SessionID,
}
var err error