File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apps/sim/app/api/knowledge/[id]/tag-definitions Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export async function GET(req: NextRequest, { params }: { params: Promise<{ id:
1919 try {
2020 logger . info ( `[${ requestId } ] Getting tag definitions for knowledge base ${ knowledgeBaseId } ` )
2121
22- const auth = await checkSessionOrInternalAuth ( req )
22+ const auth = await checkSessionOrInternalAuth ( req , { requireWorkflowId : false } )
2323 if ( ! auth . success ) {
2424 return NextResponse . json ( { error : auth . error || 'Unauthorized' } , { status : 401 } )
2525 }
@@ -56,7 +56,7 @@ export async function POST(req: NextRequest, { params }: { params: Promise<{ id:
5656 try {
5757 logger . info ( `[${ requestId } ] Creating tag definition for knowledge base ${ knowledgeBaseId } ` )
5858
59- const auth = await checkSessionOrInternalAuth ( req )
59+ const auth = await checkSessionOrInternalAuth ( req , { requireWorkflowId : false } )
6060 if ( ! auth . success ) {
6161 return NextResponse . json ( { error : auth . error || 'Unauthorized' } , { status : 401 } )
6262 }
You can’t perform that action at this time.
0 commit comments