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