mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): fix for no-uncaught-json-parse warnings
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
INodeType,
|
||||
INodeTypeDescription,
|
||||
IWebhookResponseData,
|
||||
jsonParse,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { jotformApiRequest } from './GenericFunctions';
|
||||
@@ -167,7 +168,8 @@ export class JotFormTrigger implements INodeType {
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
form.parse(req, async (err, data, files) => {
|
||||
const rawRequest = JSON.parse(data.rawRequest as string);
|
||||
// tslint:disable-next-line:no-any
|
||||
const rawRequest = jsonParse<any>(data.rawRequest as string);
|
||||
data.rawRequest = rawRequest;
|
||||
|
||||
let returnData: IDataObject;
|
||||
|
||||
Reference in New Issue
Block a user