2
0

🐛 (webhook) Fix test request execution invalid timeout

This commit is contained in:
Baptiste Arnaud
2024-01-04 14:09:06 +01:00
parent 5266be1a51
commit f73bc46208
3 changed files with 39 additions and 19 deletions

View File

@@ -54,16 +54,18 @@ const extractLinkedInputBlocks =
const linkedBotInputs =
previousLinkedTypebotBlocks.length > 0
? await Promise.all(
previousLinkedTypebotBlocks.map((linkedBot) =>
extractLinkedInputBlocks(
linkedTypebots.find((t) =>
'typebotId' in t
? t.typebotId === linkedBot.options?.typebotId
: t.id === linkedBot.options?.typebotId
) ?? typebot,
linkedTypebots
)(linkedBot.options?.groupId, 'forward')
)
previousLinkedTypebotBlocks.map((linkedBot) => {
const linkedTypebot = linkedTypebots.find((t) =>
'typebotId' in t
? t.typebotId === linkedBot.options?.typebotId
: t.id === linkedBot.options?.typebotId
)
if (!linkedTypebot) return []
return extractLinkedInputBlocks(linkedTypebot, linkedTypebots)(
linkedBot.options?.groupId,
'forward'
)
})
)
: []