fix(ideas): consistent desc orderBy for userQuestions in timeline page
userQuestions waren als enige `asc` opgehaald terwijl logs en questions `desc` gebruiken; het timeline-component sorteert toch client-side `desc`, maar consistentie voorkomt verwarring bij toekomstige wijzigingen. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
973ff93d0c
commit
a3303a605b
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ export default async function IdeaDetailPage({ params, searchParams }: PageProps
|
|||
|
||||
const userQuestionsRaw = await prisma.userQuestion.findMany({
|
||||
where: { idea_id: id },
|
||||
orderBy: { created_at: 'asc' },
|
||||
orderBy: { created_at: 'desc' },
|
||||
take: 100,
|
||||
select: { id: true, question: true, answer: true, status: true, created_at: true },
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue