mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-01 10:11:50 +02:00
⚡️ Optimize participant query
This commit is contained in:
parent
bc521f7ecb
commit
d5fc45c506
8 changed files with 33 additions and 271 deletions
|
@ -21,7 +21,12 @@ export const participants = router({
|
|||
pollId,
|
||||
},
|
||||
include: {
|
||||
votes: true,
|
||||
votes: {
|
||||
select: {
|
||||
optionId: true,
|
||||
type: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
orderBy: [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue