🐛 (webhook) Fix legacy webhook {{state}} body parsing
This commit is contained in:
@ -239,7 +239,7 @@ const getBodyContent =
|
|||||||
variables: Variable[]
|
variables: Variable[]
|
||||||
isCustomBody?: boolean
|
isCustomBody?: boolean
|
||||||
}): Promise<string | undefined> => {
|
}): Promise<string | undefined> => {
|
||||||
return isEmpty(body) && isCustomBody !== true
|
return body === '{{state}}' || isEmpty(body) || isCustomBody !== true
|
||||||
? JSON.stringify(
|
? JSON.stringify(
|
||||||
resultValues
|
resultValues
|
||||||
? parseAnswers({
|
? parseAnswers({
|
||||||
|
@ -223,7 +223,7 @@ const getBodyContent = async ({
|
|||||||
variables: Variable[]
|
variables: Variable[]
|
||||||
isCustomBody?: boolean
|
isCustomBody?: boolean
|
||||||
}): Promise<string | undefined> => {
|
}): Promise<string | undefined> => {
|
||||||
return isEmpty(body) && isCustomBody !== true
|
return body === '{{state}}' || isEmpty(body) || isCustomBody !== true
|
||||||
? JSON.stringify(
|
? JSON.stringify(
|
||||||
parseAnswers({
|
parseAnswers({
|
||||||
answers,
|
answers,
|
||||||
|
Reference in New Issue
Block a user