Skip to content

Commit 767ba42

Browse files
committed
fix(audit-log): add missing actorName/actorEmail to workflow duplicate
1 parent affcdfb commit 767ba42

File tree

1 file changed

+2
-0
lines changed
  • apps/sim/app/api/workflows/[id]/duplicate

1 file changed

+2
-0
lines changed

apps/sim/app/api/workflows/[id]/duplicate/route.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ export async function POST(req: NextRequest, { params }: { params: Promise<{ id:
6565
recordAudit({
6666
workspaceId: workspaceId || null,
6767
actorId: userId,
68+
actorName: auth.userName,
69+
actorEmail: auth.userEmail,
6870
action: AuditAction.WORKFLOW_DUPLICATED,
6971
resourceType: AuditResourceType.WORKFLOW,
7072
resourceId: result.id,

0 commit comments

Comments
 (0)