This commit is contained in:
Zacharias-Brohn
2026-01-14 21:45:28 +01:00
parent 2d68b5bff7
commit c6352f4a19
5 changed files with 372 additions and 25 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export async function GET(request: NextRequest) {
const chats = await prisma.chat.findMany({
where: { userId },
orderBy: { updatedAt: 'desc' },
orderBy: [{ pinned: 'desc' }, { updatedAt: 'desc' }],
include: {
messages: {
orderBy: { createdAt: 'asc' },