File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apps/sim/app/api/copilot/chat Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { getCopilotModel } from '@/lib/copilot/config'
66import { TITLE_GENERATION_SYSTEM_PROMPT , TITLE_GENERATION_USER_PROMPT } from '@/lib/copilot/prompts'
77import { createLogger } from '@/lib/logs/console/logger'
88import { db } from '@/db'
9- import { apiKey as apiKeyTable , copilotChats } from '@/db/schema'
9+ import { copilotChats } from '@/db/schema'
1010import { executeProviderRequest } from '@/providers'
1111
1212const logger = createLogger ( 'CopilotChatAPI' )
@@ -121,7 +121,7 @@ export async function POST(req: NextRequest) {
121121 try {
122122 // Authenticate user
123123 const session = await getSession ( )
124- let authenticatedUserId : string | null = session ?. user ?. id || null
124+ const authenticatedUserId : string | null = session ?. user ?. id || null
125125
126126 if ( ! authenticatedUserId ) {
127127 return NextResponse . json ( { error : 'Unauthorized' } , { status : 401 } )
You can’t perform that action at this time.
0 commit comments