fix: update sheet display and sidebar items

This commit is contained in:
shadcn 2023-06-13 18:14:20 +04:00
parent 282ef825cb
commit 9158bfe82c
3 changed files with 8 additions and 28 deletions

View file

@ -42,7 +42,7 @@ export const POST = auth(async function POST(req: Request) {
if (req.auth?.user?.email == null) {
return
}
const title = json.messages[0].content.substring(0, 20)
const title = json.messages[0].content.substring(0, 100)
const userId = (req as any).auth?.user?.email
const id = json.id ?? nanoid()
const createdAt = Date.now()