mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Minor improvement to GetResponse Node
This commit is contained in:
@@ -241,6 +241,7 @@ export const contactFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* contact:get */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -288,6 +289,7 @@ export const contactFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* contact:getAll */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -551,7 +553,6 @@ export const contactFields = [
|
||||
loadOptionsMethod: 'getCampaigns',
|
||||
},
|
||||
default: '',
|
||||
description: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Custom Fields',
|
||||
@@ -600,7 +601,6 @@ export const contactFields = [
|
||||
name: 'email',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: '',
|
||||
},
|
||||
{
|
||||
displayName: 'IP Address',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {
|
||||
OptionsWithUri,
|
||||
} from 'request';
|
||||
} from 'request';
|
||||
|
||||
import {
|
||||
IExecuteFunctions,
|
||||
@@ -68,4 +68,3 @@ export async function getResponseApiRequestAllItems(this: IExecuteFunctions | IL
|
||||
|
||||
return returnData;
|
||||
}
|
||||
|
||||
|
||||
@@ -252,7 +252,7 @@ export class GetResponse implements INodeType {
|
||||
'changeOnTo',
|
||||
];
|
||||
|
||||
const dateMapToKey: { [key: string]: string; } = {
|
||||
const dateMapToKey: { [key: string]: string; } = {
|
||||
'createdOnFrom': '[createdOn][from]',
|
||||
'createdOnTo': '[createdOn][to]',
|
||||
'changeOnFrom': '[changeOn][from]',
|
||||
@@ -264,7 +264,7 @@ export class GetResponse implements INodeType {
|
||||
if (isDate.includes(key)) {
|
||||
qs[`query${dateMapToKey[key]}`] = moment.tz(qs[key], timezone).format('YYYY-MM-DDTHH:mm:ssZZ');
|
||||
} else {
|
||||
qs[`query[${key}]`] = qs[key];
|
||||
qs[`query[${key}]`] = qs[key];
|
||||
}
|
||||
delete qs[key];
|
||||
}
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 750 B |
Reference in New Issue
Block a user