| 665 | } |
| 666 | |
| 667 | export 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 | } |