Skip to content

Commit

Permalink
馃殤 (Revert stream condition for self-hosting)
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Apr 3, 2024
1 parent 7ce6d73 commit 7237901
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/bot-engine/forge/executeForgedBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 (
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 7237901

Please sign in to comment.