Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix return code
  • Loading branch information
icecrasher321 committed Feb 10, 2026
commit b7aa96ce4b45697c1144a69ef6591fadf20bb455
10 changes: 1 addition & 9 deletions apps/sim/app/api/guardrails/validate/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,7 @@ export async function POST(request: NextRequest) {
try {
const auth = await checkSessionOrInternalAuth(request, { requireWorkflowId: false })
if (!auth.success || !auth.userId) {
return NextResponse.json({
success: true,
output: {
passed: false,
validationType: 'unknown',
input: '',
error: 'Unauthorized',
},
})
return NextResponse.json({ error: 'Unauthorized' }, { status: 401 })
}
Comment thread
icecrasher321 marked this conversation as resolved.

const body = await request.json()
Expand Down