2
0

🚑 (Revert stream condition for self-hosting)

This commit is contained in:
Baptiste Arnaud
2024-04-03 07:33:53 +02:00
parent 7ce6d737f5
commit 7237901c05

View File

@ -3,7 +3,6 @@ import { forgedBlocks } from '@typebot.io/forge-repository/definitions'
import { ForgedBlock } from '@typebot.io/forge-repository/types'
import { decrypt } from '@typebot.io/lib/api/encryption/decrypt'
import { isPlaneteScale } from '@typebot.io/lib/isPlanetScale'
import prisma from '@typebot.io/lib/prisma'
import {
SessionState,
ContinueChatResponse,
@ -19,7 +18,6 @@ import { updateVariablesInSession } from '@typebot.io/variables/updateVariablesI
import { ExecuteIntegrationResponse } from '../types'
import { byId } from '@typebot.io/lib'
import { BubbleBlockType } from '@typebot.io/schemas/features/blocks/bubbles/constants'
import { env } from '@typebot.io/env'
import { getCredentials } from '../queries/getCredentials'
export const executeForgedBlock = async (
@ -60,8 +58,9 @@ export const executeForgedBlock = async (
action.run.stream.getStreamVariableId(block.options)
) &&
state.isStreamEnabled &&
!state.whatsApp
!state.whatsApp &&
// TODO: Enable once chat api is rolling
isPlaneteScale()
// !process.env.VERCEL_ENV
) {
return {