From 7237901c050548822c554cc871966a2d0dcd01d2 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Wed, 3 Apr 2024 07:33:53 +0200 Subject: [PATCH] :ambulance: (Revert stream condition for self-hosting) --- packages/bot-engine/forge/executeForgedBlock.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/bot-engine/forge/executeForgedBlock.ts b/packages/bot-engine/forge/executeForgedBlock.ts index 7c50e8567..32e0e01c9 100644 --- a/packages/bot-engine/forge/executeForgedBlock.ts +++ b/packages/bot-engine/forge/executeForgedBlock.ts @@ -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 {