Add team Id to hash url (#2803)

pull/2810/head
sean-brydon 2022-05-18 15:59:23 +01:00 committed by GitHub
parent 5a124cec72
commit 821105dccb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -369,7 +369,7 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
fetchTokens();
!hashedUrl && setHashedUrl(generateHashedLink(eventType.users[0].id));
!hashedUrl && setHashedUrl(generateHashedLink(eventType.users[0]?.id ?? team?.id));
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
@ -2184,6 +2184,7 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
successRedirectUrl: true,
team: {
select: {
id: true,
slug: true,
members: {
where: {