Skip to content

Commit 1e0df74

Browse files
committed
Lint
1 parent e8b05ae commit 1e0df74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/sim/app/api/copilot/chat/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { getCopilotModel } from '@/lib/copilot/config'
66
import { TITLE_GENERATION_SYSTEM_PROMPT, TITLE_GENERATION_USER_PROMPT } from '@/lib/copilot/prompts'
77
import { createLogger } from '@/lib/logs/console/logger'
88
import { db } from '@/db'
9-
import { apiKey as apiKeyTable, copilotChats } from '@/db/schema'
9+
import { copilotChats } from '@/db/schema'
1010
import { executeProviderRequest } from '@/providers'
1111

1212
const 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 })

0 commit comments

Comments
 (0)