Add team Id to hash url (#2803)

pull/2850/head
sean-brydon 2022-05-18 15:59:23 +01:00 committed by zomars
parent 25c550de3a
commit 80954aa866
1 changed files with 2 additions and 1 deletions

View File

@ -332,7 +332,7 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
fetchTokens(); 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 // eslint-disable-next-line react-hooks/exhaustive-deps
}, []); }, []);
@ -2182,6 +2182,7 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
successRedirectUrl: true, successRedirectUrl: true,
team: { team: {
select: { select: {
id: true,
slug: true, slug: true,
members: { members: {
where: { where: {