From 1e0df7466d7c000c699c84df2791ef53976c82a7 Mon Sep 17 00:00:00 2001 From: Siddharth Ganesan Date: Sat, 2 Aug 2025 16:10:36 -0700 Subject: [PATCH] Lint --- apps/sim/app/api/copilot/chat/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/sim/app/api/copilot/chat/route.ts b/apps/sim/app/api/copilot/chat/route.ts index b8858832b9..8c2104f432 100644 --- a/apps/sim/app/api/copilot/chat/route.ts +++ b/apps/sim/app/api/copilot/chat/route.ts @@ -6,7 +6,7 @@ import { getCopilotModel } from '@/lib/copilot/config' import { TITLE_GENERATION_SYSTEM_PROMPT, TITLE_GENERATION_USER_PROMPT } from '@/lib/copilot/prompts' import { createLogger } from '@/lib/logs/console/logger' import { db } from '@/db' -import { apiKey as apiKeyTable, copilotChats } from '@/db/schema' +import { copilotChats } from '@/db/schema' import { executeProviderRequest } from '@/providers' const logger = createLogger('CopilotChatAPI') @@ -121,7 +121,7 @@ export async function POST(req: NextRequest) { try { // Authenticate user const session = await getSession() - let authenticatedUserId: string | null = session?.user?.id || null + const authenticatedUserId: string | null = session?.user?.id || null if (!authenticatedUserId) { return NextResponse.json({ error: 'Unauthorized' }, { status: 401 })