mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): fix for no-uncaught-json-parse warnings
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
||||
INodePropertyOptions,
|
||||
INodeType,
|
||||
INodeTypeDescription,
|
||||
jsonParse,
|
||||
NodeOperationError,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
@@ -362,7 +363,7 @@ export class MoveBinaryData implements INodeType {
|
||||
convertedValue = iconv.decode(buffer, encoding, {
|
||||
stripBOM: options.stripBOM as boolean,
|
||||
});
|
||||
newItem.json = JSON.parse(convertedValue);
|
||||
newItem.json = jsonParse(convertedValue);
|
||||
} else {
|
||||
// Does get added to existing data so copy it first
|
||||
newItem.json = deepCopy(item.json);
|
||||
@@ -376,7 +377,7 @@ export class MoveBinaryData implements INodeType {
|
||||
}
|
||||
|
||||
if (options.jsonParse) {
|
||||
convertedValue = JSON.parse(convertedValue);
|
||||
convertedValue = jsonParse(convertedValue);
|
||||
}
|
||||
|
||||
const destinationKey = this.getNodeParameter('destinationKey', itemIndex, '') as string;
|
||||
|
||||
Reference in New Issue
Block a user