🐛 (share) Enable back empty public ID for self-hosted version
Closes #576
This commit is contained in:
@@ -125,10 +125,10 @@ export const sendMessage = publicProcedure
|
||||
)
|
||||
|
||||
const startSession = async (startParams?: StartParams, userId?: string) => {
|
||||
if (!startParams?.typebot)
|
||||
if (!startParams)
|
||||
throw new TRPCError({
|
||||
code: 'BAD_REQUEST',
|
||||
message: 'No typebot provided in startParams',
|
||||
message: 'StartParams are missing',
|
||||
})
|
||||
|
||||
const typebot = await getTypebot(startParams, userId)
|
||||
|
||||
Reference in New Issue
Block a user