🚑 Fix user creation crashing
This commit is contained in:
@ -14,7 +14,6 @@ import { getNewUserInvitations } from '@/features/auth/helpers/getNewUserInvitat
|
|||||||
import { joinWorkspaces } from '@/features/auth/helpers/joinWorkspaces'
|
import { joinWorkspaces } from '@/features/auth/helpers/joinWorkspaces'
|
||||||
import { parseWorkspaceDefaultPlan } from '@/features/workspace/helpers/parseWorkspaceDefaultPlan'
|
import { parseWorkspaceDefaultPlan } from '@/features/workspace/helpers/parseWorkspaceDefaultPlan'
|
||||||
import { env } from '@typebot.io/env'
|
import { env } from '@typebot.io/env'
|
||||||
import { trackEvents } from '@typebot.io/lib/telemetry/trackEvents'
|
|
||||||
|
|
||||||
export function customAdapter(p: PrismaClient): Adapter {
|
export function customAdapter(p: PrismaClient): Adapter {
|
||||||
return {
|
return {
|
||||||
@ -80,7 +79,7 @@ export function customAdapter(p: PrismaClient): Adapter {
|
|||||||
name: data.name ? (data.name as string).split(' ')[0] : undefined,
|
name: data.name ? (data.name as string).split(' ')[0] : undefined,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
await trackEvents(events)
|
// await trackEvents(events)
|
||||||
if (invitations.length > 0)
|
if (invitations.length > 0)
|
||||||
await convertInvitationsToCollaborations(p, user, invitations)
|
await convertInvitationsToCollaborations(p, user, invitations)
|
||||||
if (workspaceInvitations.length > 0)
|
if (workspaceInvitations.length > 0)
|
||||||
|
Reference in New Issue
Block a user