From a920b8845e2b9d911dfc31a0a1784c0d0935d1e1 Mon Sep 17 00:00:00 2001 From: Lee Robinson Date: Sun, 26 Nov 2023 19:32:30 -0600 Subject: [PATCH] Remove comment --- app/api/chat/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/chat/route.ts b/app/api/chat/route.ts index 5166430..8d9b3c5 100644 --- a/app/api/chat/route.ts +++ b/app/api/chat/route.ts @@ -14,7 +14,7 @@ const openai = new OpenAI({ export async function POST(req: Request) { const json = await req.json() const { messages, previewToken } = json - const userId = (await auth())?.user.id // this doesn't seem to work getting the id + const userId = (await auth())?.user.id if (!userId) { return new Response('Unauthorized', {