File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,7 +73,9 @@ export const GET = withRouteHandler(
7373 }
7474
7575 const accessError = await validateWorkspaceAccess ( rateLimit , userId , log . workspaceId )
76- if ( accessError ) return accessError
76+ if ( accessError ) {
77+ return NextResponse . json ( { error : 'Log not found' } , { status : 404 } )
78+ }
7779
7880 const workflowSummary = {
7981 id : log . workflowId ,
Original file line number Diff line number Diff line change @@ -47,7 +47,9 @@ export const GET = withRouteHandler(
4747 const workflowLog = rows [ 0 ]
4848
4949 const accessError = await validateWorkspaceAccess ( rateLimit , userId , workflowLog . workspaceId )
50- if ( accessError ) return accessError
50+ if ( accessError ) {
51+ return NextResponse . json ( { error : 'Workflow execution not found' } , { status : 404 } )
52+ }
5153
5254 const [ snapshot ] = await db
5355 . select ( )
Original file line number Diff line number Diff line change @@ -51,7 +51,9 @@ export const GET = withRouteHandler(
5151 userId ,
5252 workflowData . workspaceId !
5353 )
54- if ( accessError ) return accessError
54+ if ( accessError ) {
55+ return NextResponse . json ( { error : 'Workflow not found' } , { status : 404 } )
56+ }
5557
5658 const blockRows = await db
5759 . select ( {
You can’t perform that action at this time.
0 commit comments