Skip to content

Commit a1b3fe8

Browse files
fix(workflows): format duplicate route logger
1 parent f7b45a8 commit a1b3fe8

File tree

1 file changed

+1
-3
lines changed
  • apps/sim/app/api/workflows/[id]/duplicate

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ export async function POST(req: NextRequest, { params }: { params: Promise<{ id:
9595
}
9696

9797
if (error.message === 'Write or admin access required for target workspace') {
98-
logger.warn(
99-
`[${requestId}] User ${userId} lacks write access to target workspace`
100-
)
98+
logger.warn(`[${requestId}] User ${userId} lacks write access to target workspace`)
10199
return NextResponse.json({ error: 'Write or admin access required' }, { status: 403 })
102100
}
103101

0 commit comments

Comments
 (0)