2
0

♻️ (lp) Remove old bot-engine from landing page

This commit is contained in:
Baptiste Arnaud
2023-01-25 16:15:03 +01:00
parent 30baa611e5
commit 79622c6884
10 changed files with 112 additions and 113 deletions

View File

@ -37,12 +37,16 @@ export const executeWebhookBlock = async (
where: { id: block.webhookId },
})) as Webhook | null
if (!webhook) {
log = {
status: 'error',
description: `Couldn't find webhook with id ${block.webhookId}`,
}
result &&
(await saveErrorLog({
resultId: result.id,
message: `Couldn't find webhook`,
message: log.description,
}))
return { outgoingEdgeId: block.outgoingEdgeId }
return { outgoingEdgeId: block.outgoingEdgeId, logs: [log] }
}
const preparedWebhook = prepareWebhookAttributes(webhook, block.options)
const resultValues = result && (await getResultValues(result.id))