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