From ee4c46dbd3c06a2ff169d61647351c12584e5254 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Sat, 7 Dec 2019 22:21:04 +0100 Subject: [PATCH] :zap: Rename operations --- .../nodes/Hubspot/DealDescription.ts | 22 +++++++++---------- .../nodes-base/nodes/Hubspot/Hubspot.node.ts | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/nodes-base/nodes/Hubspot/DealDescription.ts b/packages/nodes-base/nodes/Hubspot/DealDescription.ts index f0f27fe82d..b215e3cbc8 100644 --- a/packages/nodes-base/nodes/Hubspot/DealDescription.ts +++ b/packages/nodes-base/nodes/Hubspot/DealDescription.ts @@ -39,13 +39,13 @@ export const dealOperations = [ description: 'Delete a deals', }, { - name: 'Recents Created', - value: 'getRecentsCreated', + name: 'Get Recently Created', + value: 'getRecentlyCreated', description: 'Get recently created deals', }, { - name: 'Recents Modified', - value: 'getRecentsModified', + name: 'Get Recently Modified', + value: 'getRecentlyModified', description: 'Get recently modified deals', }, ], @@ -406,7 +406,7 @@ export const dealFields = [ description: 'Unique identifier for a particular deal', }, /* -------------------------------------------------------------------------- */ -/* deal:getRecentsCreated deal:getRecentsModified */ +/* deal:getRecentlyCreated deal:getRecentlyModified */ /* -------------------------------------------------------------------------- */ { displayName: 'Return All', @@ -418,8 +418,8 @@ export const dealFields = [ 'deal', ], operation: [ - 'getRecentsCreated', - 'getRecentsModified', + 'getRecentlyCreated', + 'getRecentlyModified', ], }, }, @@ -436,8 +436,8 @@ export const dealFields = [ 'deal', ], operation: [ - 'getRecentsCreated', - 'getRecentsModified', + 'getRecentlyCreated', + 'getRecentlyModified', ], returnAll: [ false, @@ -463,8 +463,8 @@ export const dealFields = [ 'deal', ], operation: [ - 'getRecentsCreated', - 'getRecentsModified', + 'getRecentlyCreated', + 'getRecentlyModified', ], }, }, diff --git a/packages/nodes-base/nodes/Hubspot/Hubspot.node.ts b/packages/nodes-base/nodes/Hubspot/Hubspot.node.ts index 0abed92b50..7fdcc66a51 100644 --- a/packages/nodes-base/nodes/Hubspot/Hubspot.node.ts +++ b/packages/nodes-base/nodes/Hubspot/Hubspot.node.ts @@ -320,7 +320,7 @@ export class Hubspot implements INodeType { throw new Error(`Hubspot Error: ${JSON.stringify(err)}`); } } - if (operation === 'getRecentsCreated' || operation === 'getRecentsModified') { + if (operation === 'getRecentlyCreated' || operation === 'getRecentlyModified') { let endpoint; const filters = this.getNodeParameter('filters', i) as IDataObject; const returnAll = this.getNodeParameter('returnAll', 0) as boolean; @@ -331,7 +331,7 @@ export class Hubspot implements INodeType { qs.includePropertyVersions = filters.includePropertyVersions as boolean; } try { - if (operation === 'getRecentsCreated') { + if (operation === 'getRecentlyCreated') { endpoint = `/deals/v1/deal/recent/created`; } else { endpoint = `/deals/v1/deal/recent/modified`;