chore: snapshot before performance optimization
This commit is contained in:
@@ -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 } } }
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user