chore: snapshot before performance optimization

This commit is contained in:
Sepehr Ramezani
2026-04-17 21:14:43 +02:00
parent b6a548acd8
commit 2eceb32fd4
95 changed files with 4357 additions and 1942 deletions

View File

@@ -21,7 +21,7 @@ export async function GET(request: NextRequest) {
orderBy: { name: 'asc' }
},
_count: {
select: { notes: true }
select: { notes: { where: { isArchived: false } } }
}
},
orderBy: { order: 'asc' }
@@ -82,7 +82,7 @@ export async function POST(request: NextRequest) {
include: {
labels: true,
_count: {
select: { notes: true }
select: { notes: { where: { isArchived: false } } }
}
}
})