2
0

🚑 Fix user creation crashing

This commit is contained in:
Baptiste Arnaud
2024-02-03 11:51:27 +01:00
parent 9f0c6b3cc4
commit 9222da6681

View File

@ -14,7 +14,6 @@ import { getNewUserInvitations } from '@/features/auth/helpers/getNewUserInvitat
import { joinWorkspaces } from '@/features/auth/helpers/joinWorkspaces'
import { parseWorkspaceDefaultPlan } from '@/features/workspace/helpers/parseWorkspaceDefaultPlan'
import { env } from '@typebot.io/env'
import { trackEvents } from '@typebot.io/lib/telemetry/trackEvents'
export function customAdapter(p: PrismaClient): Adapter {
return {
@ -80,7 +79,7 @@ export function customAdapter(p: PrismaClient): Adapter {
name: data.name ? (data.name as string).split(' ')[0] : undefined,
},
})
await trackEvents(events)
// await trackEvents(events)
if (invitations.length > 0)
await convertInvitationsToCollaborations(p, user, invitations)
if (workspaceInvitations.length > 0)