Only take owner data we need in public event api, instead of everything. Saves bandwidth. (#9394)

pull/8547/head^2
Jeroen Reumkens 2023-06-07 23:56:26 +02:00 committed by zomars
parent dc2b145843
commit 2c47cb6a3b
1 changed files with 7 additions and 1 deletions

View File

@ -63,7 +63,13 @@ const publicEventSelect = Prisma.validator<Prisma.EventTypeSelect>()({
},
},
},
owner: true,
owner: {
select: {
weekStart: true,
username: true,
name: true,
},
},
hidden: true,
});