diff --git a/apps/server/src/routes/api/llm.ts b/apps/server/src/routes/api/llm.ts index 658b44c93..d9dda5d7a 100644 --- a/apps/server/src/routes/api/llm.ts +++ b/apps/server/src/routes/api/llm.ts @@ -188,7 +188,7 @@ async function getSession(req: Request, res: Response) { */ async function updateSession(req: Request, res: Response) { // Get the chat using chatStorageService directly - const chatNoteId = req.params.chatNoteId; + const chatNoteId = req.params.sessionId; const updates = req.body; try {