️ Optimize options query

This commit is contained in:
Luke Vella 2023-08-25 18:31:09 +01:00
parent f10fd919c7
commit bc521f7ecb
3 changed files with 10 additions and 3 deletions

View file

@ -405,6 +405,11 @@ export const polls = router({
hideScores: true,
demo: true,
options: {
select: {
id: true,
start: true,
duration: true,
},
orderBy: {
start: "asc",
},