n8n/packages/nodes-base/nodes/HttpRequest/GenericFunctions.ts

9 lines
183 B
TypeScript
Raw Normal View History

2022-06-14 06:24:49 -07:00
import { INodeExecutionData } from 'n8n-workflow';
export const replaceNullValues = (item: INodeExecutionData) => {
if (item.json === null) {
item.json = {};
}
return item;
};