2
0

🗃 Improve usage queries

This commit is contained in:
Baptiste Arnaud
2023-02-11 19:04:54 +01:00
parent c175ade4d0
commit e9a1d1683e
5 changed files with 58 additions and 46 deletions

View File

@ -49,7 +49,7 @@ export const getResultsProcedure = authenticatedProcedure
cursor: cursor ? { id: cursor } : undefined,
where: {
typebotId: typebot.id,
answers: { some: {} },
hasStarted: true,
},
orderBy: {
createdAt: 'desc',