2
0

fix(editor): ✏️ Collab invite link

This commit is contained in:
Baptiste Arnaud
2022-05-31 10:19:19 +02:00
parent 61e4ca1313
commit c6bd3ea634
2 changed files with 5 additions and 3 deletions

View File

@ -10,7 +10,6 @@ import {
badRequest,
forbidden,
isEmpty,
isNotDefined,
methodNotAllowed,
notAuthenticated,
} from 'utils'
@ -73,7 +72,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
subject: "You've been invited to collaborate 🤝",
content: invitationToCollaborate(
user.email ?? '',
`${process.env.NEXTAUTH_URL}/typebots/shared`
`${process.env.NEXTAUTH_URL}/typebots?workspaceId=${typebot.workspaceId}`
),
})
return res.send({