2
0

🐛 Revert to got for user created webhook to fix function crash

This commit is contained in:
Baptiste Arnaud
2024-02-03 12:38:09 +01:00
parent 9222da6681
commit 9014c4ab09
2 changed files with 13 additions and 8 deletions

View File

@@ -14,6 +14,7 @@ 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 {
@@ -79,7 +80,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)