mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(core): fixes n8n-local-rules/no-json-parse-json-stringify warnings (#4407)
* 🔨 fixes * 🔨 set rule to error
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { IExecuteFunctions } from 'n8n-core';
|
||||
|
||||
import {
|
||||
deepCopy,
|
||||
IDataObject,
|
||||
ILoadOptionsFunctions,
|
||||
INodeExecutionData,
|
||||
@@ -431,7 +432,7 @@ export class DateTime implements INodeType {
|
||||
if (dataPropertyName.includes('.')) {
|
||||
// Uses dot notation so copy all data
|
||||
newItem = {
|
||||
json: JSON.parse(JSON.stringify(item.json)),
|
||||
json: deepCopy(item.json),
|
||||
pairedItem: {
|
||||
item: i,
|
||||
},
|
||||
@@ -475,7 +476,7 @@ export class DateTime implements INodeType {
|
||||
if (dataPropertyName.includes('.')) {
|
||||
// Uses dot notation so copy all data
|
||||
newItem = {
|
||||
json: JSON.parse(JSON.stringify(item.json)),
|
||||
json: deepCopy(item.json),
|
||||
pairedItem: {
|
||||
item: i,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user