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:
@@ -7,6 +7,7 @@ import {
|
||||
INodeType,
|
||||
INodeTypeDescription,
|
||||
ITriggerResponse,
|
||||
jsonParse,
|
||||
NodeOperationError,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
@@ -190,7 +191,7 @@ export class AmqpTrigger implements INodeType {
|
||||
}
|
||||
|
||||
if (options.jsonParseBody === true) {
|
||||
data.body = JSON.parse(data.body);
|
||||
data.body = jsonParse(data.body);
|
||||
}
|
||||
if (options.onlyBody === true) {
|
||||
data = data.body;
|
||||
|
||||
Reference in New Issue
Block a user