2
0

🐛 (webhook) Prioritize variables parsing over answers

This commit is contained in:
Baptiste Arnaud
2022-12-23 14:59:34 +01:00
parent 11ff7eab56
commit 64cd31cf13
2 changed files with 22 additions and 19 deletions

View File

@ -255,6 +255,7 @@ const convertKeyValueTableToObject = (
}, {})
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const safeJsonParse = (json: string): { data: any; isJson: boolean } => {
try {
return { data: JSON.parse(json), isJson: true }