fix: Remove logo from getPublicEvent response (#14488)

This commit is contained in:
Alex van Andel authored and GitHub committed 2024-04-09 23:23:54 +00:00
1 parent c090f78898
commit f00849b8d1
1 file changed
+2 -2
@@ -78,7 +78,7 @@ const publicEventSelect = Prisma.validator<Prisma.EventTypeSelect>()({
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,