add team slug to team event link (#9558)

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
pull/9566/head
Carina Wollendorfer 2023-06-16 11:05:47 +02:00 committed by GitHub
parent e6d6f3317e
commit 66ebf18fa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ export const getByViewerHandler = async ({ ctx }: GetByViewerOptions) => {
image: `${CAL_URL}/team/${membership.team.slug}/avatar.png`, image: `${CAL_URL}/team/${membership.team.slug}/avatar.png`,
slug: membership.team.slug slug: membership.team.slug
? !membership.team.parentId ? !membership.team.parentId
? `team` ? `team/${membership.team.slug}`
: "" + membership.team.slug : "" + membership.team.slug
: null, : null,
}, },