2
0

🐛 (webhook) Fix legacy webhook {{state}} body parsing

This commit is contained in:
Baptiste Arnaud
2023-11-12 08:35:29 +01:00
parent bac2393b5d
commit 63233eb7ee
2 changed files with 2 additions and 2 deletions

View File

@ -239,7 +239,7 @@ const getBodyContent =
variables: Variable[]
isCustomBody?: boolean
}): Promise<string | undefined> => {
return isEmpty(body) && isCustomBody !== true
return body === '{{state}}' || isEmpty(body) || isCustomBody !== true
? JSON.stringify(
resultValues
? parseAnswers({

View File

@ -223,7 +223,7 @@ const getBodyContent = async ({
variables: Variable[]
isCustomBody?: boolean
}): Promise<string | undefined> => {
return isEmpty(body) && isCustomBody !== true
return body === '{{state}}' || isEmpty(body) || isCustomBody !== true
? JSON.stringify(
parseAnswers({
answers,