2
0

fix(editor): 🐛 Attempt to fix collaboration invitation email

This commit is contained in:
Baptiste Arnaud
2022-06-30 11:25:17 +02:00
parent bc803fc552
commit 6e5f507171

View File

@ -64,7 +64,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
})
} else
await prisma.invitation.create({
data: { email: email.toLowerCase(), type, typebotId },
data: { email: email.toLowerCase().trim(), type, typebotId },
})
if (env('E2E_TEST') !== 'enabled')
await sendEmailNotification({