From f00849b8d1df649931dc25b4760649cb3f45a462 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Wed, 10 Apr 2024 00:23:54 +0100 Subject: [PATCH] fix: Remove logo from getPublicEvent response (#14488) --- packages/features/eventtypes/lib/getPublicEvent.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/features/eventtypes/lib/getPublicEvent.ts b/packages/features/eventtypes/lib/getPublicEvent.ts index ef2df1a194..387bfac37c 100644 --- a/packages/features/eventtypes/lib/getPublicEvent.ts +++ b/packages/features/eventtypes/lib/getPublicEvent.ts @@ -78,7 +78,7 @@ const publicEventSelect = Prisma.validator()({ darkBrandColor: true, slug: true, name: true, - logo: true, + logoUrl: true, theme: true, parent: { select: { @@ -348,7 +348,7 @@ function getProfileFromEvent(event: Event) { }, avatarUrl: nonTeamprofile?.avatarUrl, }), - logo: !team ? undefined : team.logo, + logo: !team ? undefined : team.logoUrl, brandColor: profile.brandColor, darkBrandColor: profile.darkBrandColor, theme: profile.theme,