From 2c47cb6a3b05eb47483e1fed80c1d09cec713e8d Mon Sep 17 00:00:00 2001 From: Jeroen Reumkens Date: Wed, 7 Jun 2023 23:56:26 +0200 Subject: [PATCH] Only take owner data we need in public event api, instead of everything. Saves bandwidth. (#9394) --- packages/features/eventtypes/lib/getPublicEvent.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/features/eventtypes/lib/getPublicEvent.ts b/packages/features/eventtypes/lib/getPublicEvent.ts index 273fed6487..f2313e087c 100644 --- a/packages/features/eventtypes/lib/getPublicEvent.ts +++ b/packages/features/eventtypes/lib/getPublicEvent.ts @@ -63,7 +63,13 @@ const publicEventSelect = Prisma.validator()({ }, }, }, - owner: true, + owner: { + select: { + weekStart: true, + username: true, + name: true, + }, + }, hidden: true, });