Skip to content

Commit fb4f35e

Browse files
committed
Update hitl dashboard
1 parent 97882c8 commit fb4f35e

File tree

2 files changed

+486
-961
lines changed

2 files changed

+486
-961
lines changed

apps/sim/app/api/resume/[workflowId]/[executionId]/[contextId]/route.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ export async function POST(
2121
) {
2222
const { workflowId, executionId, contextId } = await params
2323

24-
// Require deployed workflow and valid API key (same as webhook triggers)
25-
const access = await validateWorkflowAccess(request, workflowId, true)
24+
// Allow resume from dashboard without requiring deployment
25+
const access = await validateWorkflowAccess(request, workflowId, false)
2626
if (access.error) {
2727
return NextResponse.json({ error: access.error.message }, { status: access.error.status })
2828
}
@@ -149,8 +149,8 @@ export async function GET(
149149
) {
150150
const { workflowId, executionId, contextId } = await params
151151

152-
// Require deployed workflow and valid API key (same as webhook triggers)
153-
const access = await validateWorkflowAccess(request, workflowId, true)
152+
// Allow access without API key for browser-based UI (same as parent execution endpoint)
153+
const access = await validateWorkflowAccess(request, workflowId, false)
154154
if (access.error) {
155155
return NextResponse.json({ error: access.error.message }, { status: access.error.status })
156156
}

0 commit comments

Comments
 (0)