Skip to content

Commit

Permalink
fix: Remove logo from getPublicEvent response (#14488)
Browse files Browse the repository at this point in the history
  • Loading branch information
emrysal committed Apr 9, 2024
1 parent c090f78 commit f00849b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/features/eventtypes/lib/getPublicEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const publicEventSelect = Prisma.validator<Prisma.EventTypeSelect>()({
darkBrandColor: true,
slug: true,
name: true,
logo: true,
logoUrl: true,
theme: true,
parent: {
select: {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit f00849b

Please sign in to comment.