Only take owner data we need in public event api, instead of everything. Saves bandwidth. (#9394)
parent
dc2b145843
commit
2c47cb6a3b
|
@ -63,7 +63,13 @@ const publicEventSelect = Prisma.validator<Prisma.EventTypeSelect>()({
|
|||
},
|
||||
},
|
||||
},
|
||||
owner: true,
|
||||
owner: {
|
||||
select: {
|
||||
weekStart: true,
|
||||
username: true,
|
||||
name: true,
|
||||
},
|
||||
},
|
||||
hidden: true,
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue