diff --git a/packages/nodes-base/nodes/ActionNetwork/GenericFunctions.ts b/packages/nodes-base/nodes/ActionNetwork/GenericFunctions.ts index 327d08af5c3f3..da137a0280b17 100644 --- a/packages/nodes-base/nodes/ActionNetwork/GenericFunctions.ts +++ b/packages/nodes-base/nodes/ActionNetwork/GenericFunctions.ts @@ -39,7 +39,7 @@ export async function actionNetworkApiRequest( delete options.qs; } - return await this.helpers.requestWithAuthentication.call(this, 'actionNetworkApi', options); + return this.helpers.requestWithAuthentication.call(this, 'actionNetworkApi', options); } export async function handleListing( diff --git a/packages/nodes-base/nodes/Airtable/GenericFunctions.ts b/packages/nodes-base/nodes/Airtable/GenericFunctions.ts index 5033274aad85c..90369ee09121f 100644 --- a/packages/nodes-base/nodes/Airtable/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Airtable/GenericFunctions.ts @@ -60,7 +60,7 @@ export async function apiRequest( delete options.body; } - return await this.helpers.requestWithAuthentication.call(this, 'airtableApi', options); + return this.helpers.requestWithAuthentication.call(this, 'airtableApi', options); } /** diff --git a/packages/nodes-base/nodes/Aws/Comprehend/GenericFunctions.ts b/packages/nodes-base/nodes/Aws/Comprehend/GenericFunctions.ts index 0ba3563582a7c..d9ab6b885fc27 100644 --- a/packages/nodes-base/nodes/Aws/Comprehend/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Aws/Comprehend/GenericFunctions.ts @@ -31,7 +31,7 @@ export async function awsApiRequest( headers, region: credentials?.region as string, } as IHttpRequestOptions; - return await this.helpers.requestWithAuthentication.call(this, 'aws', requestOptions); + return this.helpers.requestWithAuthentication.call(this, 'aws', requestOptions); } export async function awsApiRequestREST( diff --git a/packages/nodes-base/nodes/Aws/Rekognition/GenericFunctions.ts b/packages/nodes-base/nodes/Aws/Rekognition/GenericFunctions.ts index 0fb63f4487f82..db7fd87ea05cc 100644 --- a/packages/nodes-base/nodes/Aws/Rekognition/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Aws/Rekognition/GenericFunctions.ts @@ -42,7 +42,7 @@ export async function awsApiRequest( if (Object.keys(option).length !== 0) { Object.assign(requestOptions, option); } - return await this.helpers.requestWithAuthentication.call(this, 'aws', requestOptions); + return this.helpers.requestWithAuthentication.call(this, 'aws', requestOptions); } export async function awsApiRequestREST( diff --git a/packages/nodes-base/nodes/Aws/S3/GenericFunctions.ts b/packages/nodes-base/nodes/Aws/S3/GenericFunctions.ts index 00d935efeb20f..8e8c68ffc4cc7 100644 --- a/packages/nodes-base/nodes/Aws/S3/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Aws/S3/GenericFunctions.ts @@ -40,7 +40,7 @@ export async function awsApiRequest( if (Object.keys(option).length !== 0) { Object.assign(requestOptions, option); } - return await this.helpers.requestWithAuthentication.call(this, 'aws', requestOptions); + return this.helpers.requestWithAuthentication.call(this, 'aws', requestOptions); } export async function awsApiRequestREST( diff --git a/packages/nodes-base/nodes/Beeminder/GenericFunctions.ts b/packages/nodes-base/nodes/Beeminder/GenericFunctions.ts index 3d7aa4c28b3f6..d6e5bac296b25 100644 --- a/packages/nodes-base/nodes/Beeminder/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Beeminder/GenericFunctions.ts @@ -31,7 +31,7 @@ export async function beeminderApiRequest( delete options.qs; } - return await this.helpers.requestWithAuthentication.call(this, 'beeminderApi', options); + return this.helpers.requestWithAuthentication.call(this, 'beeminderApi', options); } export async function beeminderApiRequestAllItems( diff --git a/packages/nodes-base/nodes/Calendly/GenericFunctions.ts b/packages/nodes-base/nodes/Calendly/GenericFunctions.ts index 594908c3130a7..2b386e1e61b88 100644 --- a/packages/nodes-base/nodes/Calendly/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Calendly/GenericFunctions.ts @@ -52,7 +52,7 @@ export async function calendlyApiRequest( delete options.qs; } options = Object.assign({}, options, option); - return await this.helpers.requestWithAuthentication.call(this, 'calendlyApi', options); + return this.helpers.requestWithAuthentication.call(this, 'calendlyApi', options); } export function getAuthenticationType(data: string): 'accessToken' | 'apiKey' { diff --git a/packages/nodes-base/nodes/Clockify/GenericFunctions.ts b/packages/nodes-base/nodes/Clockify/GenericFunctions.ts index f1b33d85db373..95e41e5326128 100644 --- a/packages/nodes-base/nodes/Clockify/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Clockify/GenericFunctions.ts @@ -28,7 +28,7 @@ export async function clockifyApiRequest( json: true, useQuerystring: true, }; - return await this.helpers.requestWithAuthentication.call(this, 'clockifyApi', options); + return this.helpers.requestWithAuthentication.call(this, 'clockifyApi', options); } export async function clockifyApiRequestAllItems( diff --git a/packages/nodes-base/nodes/Cortex/GenericFunctions.ts b/packages/nodes-base/nodes/Cortex/GenericFunctions.ts index 80e52cd959820..d8f22b5eea002 100644 --- a/packages/nodes-base/nodes/Cortex/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Cortex/GenericFunctions.ts @@ -42,7 +42,7 @@ export async function cortexApiRequest( delete options.qs; } - return await this.helpers.requestWithAuthentication.call(this, 'cortexApi', options); + return this.helpers.requestWithAuthentication.call(this, 'cortexApi', options); } export function getEntityLabel(entity: IDataObject): string { diff --git a/packages/nodes-base/nodes/CustomerIo/GenericFunctions.ts b/packages/nodes-base/nodes/CustomerIo/GenericFunctions.ts index b65dfacee01d4..e6a8d687c0e77 100644 --- a/packages/nodes-base/nodes/CustomerIo/GenericFunctions.ts +++ b/packages/nodes-base/nodes/CustomerIo/GenericFunctions.ts @@ -32,7 +32,7 @@ export async function customerIoApiRequest( options.url = `https://beta-api.customer.io/v1/api${endpoint}`; } - return await this.helpers.requestWithAuthentication.call(this, 'customerIoApi', options); + return this.helpers.requestWithAuthentication.call(this, 'customerIoApi', options); } export function eventExists(currentEvents: string[], webhookEvents: IDataObject) { diff --git a/packages/nodes-base/nodes/Dropcontact/GenericFunction.ts b/packages/nodes-base/nodes/Dropcontact/GenericFunction.ts index f27daaa271c48..68d0ff544f0a7 100644 --- a/packages/nodes-base/nodes/Dropcontact/GenericFunction.ts +++ b/packages/nodes-base/nodes/Dropcontact/GenericFunction.ts @@ -30,5 +30,5 @@ export async function dropcontactApiRequest( delete options.qs; } - return await this.helpers.requestWithAuthentication.call(this, 'dropcontactApi', options); + return this.helpers.requestWithAuthentication.call(this, 'dropcontactApi', options); } diff --git a/packages/nodes-base/nodes/Ghost/GenericFunctions.ts b/packages/nodes-base/nodes/Ghost/GenericFunctions.ts index 20a357e88837f..edb111d62ce6b 100644 --- a/packages/nodes-base/nodes/Ghost/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Ghost/GenericFunctions.ts @@ -44,7 +44,7 @@ export async function ghostApiRequest( json: true, }; - return await this.helpers.requestWithAuthentication.call(this, credentialType, options); + return this.helpers.requestWithAuthentication.call(this, credentialType, options); } export async function ghostApiRequestAllItems( diff --git a/packages/nodes-base/nodes/HighLevel/GenericFunctions.ts b/packages/nodes-base/nodes/HighLevel/GenericFunctions.ts index 71c006eefad2c..c4c88b46be8b4 100644 --- a/packages/nodes-base/nodes/HighLevel/GenericFunctions.ts +++ b/packages/nodes-base/nodes/HighLevel/GenericFunctions.ts @@ -232,7 +232,7 @@ export async function highLevelApiRequest( delete options.qs; } options = Object.assign({}, options, option); - return await this.helpers.requestWithAuthentication.call(this, 'highLevelApi', options); + return this.helpers.requestWithAuthentication.call(this, 'highLevelApi', options); } export async function getPipelineStages( diff --git a/packages/nodes-base/nodes/Jira/GenericFunctions.ts b/packages/nodes-base/nodes/Jira/GenericFunctions.ts index 570d328d84d7b..0f5570209499a 100644 --- a/packages/nodes-base/nodes/Jira/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Jira/GenericFunctions.ts @@ -58,7 +58,7 @@ export async function jiraSoftwareCloudApiRequest( delete options.qs; } - return await this.helpers.requestWithAuthentication.call(this, credentialType, options); + return this.helpers.requestWithAuthentication.call(this, credentialType, options); } export async function jiraSoftwareCloudApiRequestAllItems( diff --git a/packages/nodes-base/nodes/Lemlist/GenericFunctions.ts b/packages/nodes-base/nodes/Lemlist/GenericFunctions.ts index 1eaa7fe230853..0824ff77d2b2b 100644 --- a/packages/nodes-base/nodes/Lemlist/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Lemlist/GenericFunctions.ts @@ -38,7 +38,7 @@ export async function lemlistApiRequest( Object.assign(options, option); } - return await this.helpers.requestWithAuthentication.call(this, 'lemlistApi', options); + return this.helpers.requestWithAuthentication.call(this, 'lemlistApi', options); } /** diff --git a/packages/nodes-base/nodes/Mailjet/GenericFunctions.ts b/packages/nodes-base/nodes/Mailjet/GenericFunctions.ts index e764a0cbfa437..88c8f29962c5d 100644 --- a/packages/nodes-base/nodes/Mailjet/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Mailjet/GenericFunctions.ts @@ -48,7 +48,7 @@ export async function mailjetApiRequest( delete options.body; } - return await this.helpers.requestWithAuthentication.call(this, credentialType, options); + return this.helpers.requestWithAuthentication.call(this, credentialType, options); } export async function mailjetApiRequestAllItems( diff --git a/packages/nodes-base/nodes/NextCloud/GenericFunctions.ts b/packages/nodes-base/nodes/NextCloud/GenericFunctions.ts index 7a6870c3195fd..4c9c9ae14926e 100644 --- a/packages/nodes-base/nodes/NextCloud/GenericFunctions.ts +++ b/packages/nodes-base/nodes/NextCloud/GenericFunctions.ts @@ -52,5 +52,5 @@ export async function nextCloudApiRequest( const credentialType = authenticationMethod === 'accessToken' ? 'nextCloudApi' : 'nextCloudOAuth2Api'; - return await this.helpers.requestWithAuthentication.call(this, credentialType, options); + return this.helpers.requestWithAuthentication.call(this, credentialType, options); } diff --git a/packages/nodes-base/nodes/NocoDB/GenericFunctions.ts b/packages/nodes-base/nodes/NocoDB/GenericFunctions.ts index fe63288bb1eaa..bc6bf21132144 100644 --- a/packages/nodes-base/nodes/NocoDB/GenericFunctions.ts +++ b/packages/nodes-base/nodes/NocoDB/GenericFunctions.ts @@ -60,7 +60,7 @@ export async function apiRequest( delete options.body; } - return await this.helpers.requestWithAuthentication.call(this, authenticationMethod, options); + return this.helpers.requestWithAuthentication.call(this, authenticationMethod, options); } /** diff --git a/packages/nodes-base/nodes/Rocketchat/GenericFunctions.ts b/packages/nodes-base/nodes/Rocketchat/GenericFunctions.ts index 78edc0e21340d..bd619c23c6549 100644 --- a/packages/nodes-base/nodes/Rocketchat/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Rocketchat/GenericFunctions.ts @@ -24,7 +24,7 @@ export async function rocketchatApiRequest( if (Object.keys(options.body).length === 0) { delete options.body; } - return await this.helpers.requestWithAuthentication.call(this, 'rocketchatApi', options); + return this.helpers.requestWithAuthentication.call(this, 'rocketchatApi', options); } // tslint:disable-next-line:no-any diff --git a/packages/nodes-base/nodes/Segment/GenericFunctions.ts b/packages/nodes-base/nodes/Segment/GenericFunctions.ts index 3981469f9ac90..abace3af3e36a 100644 --- a/packages/nodes-base/nodes/Segment/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Segment/GenericFunctions.ts @@ -36,5 +36,5 @@ export async function segmentApiRequest( if (!Object.keys(body).length) { delete options.body; } - return await this.helpers.requestWithAuthentication.call(this, 'segmentApi', options); + return this.helpers.requestWithAuthentication.call(this, 'segmentApi', options); } diff --git a/packages/nodes-base/nodes/SendGrid/GenericFunctions.ts b/packages/nodes-base/nodes/SendGrid/GenericFunctions.ts index d97bdc967aa15..d363c52c296f9 100644 --- a/packages/nodes-base/nodes/SendGrid/GenericFunctions.ts +++ b/packages/nodes-base/nodes/SendGrid/GenericFunctions.ts @@ -37,7 +37,7 @@ export async function sendGridApiRequest( Object.assign(options, option); } - return await this.helpers.requestWithAuthentication.call(this, 'sendGridApi', options); + return this.helpers.requestWithAuthentication.call(this, 'sendGridApi', options); } export async function sendGridApiRequestAllItems( diff --git a/packages/nodes-base/nodes/Shopify/GenericFunctions.ts b/packages/nodes-base/nodes/Shopify/GenericFunctions.ts index 1722f93418e8a..e891f8bd1d841 100644 --- a/packages/nodes-base/nodes/Shopify/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Shopify/GenericFunctions.ts @@ -66,7 +66,7 @@ export async function shopifyApiRequest( delete options.qs; } - return await this.helpers.requestWithAuthentication.call(this, credentialType, options, { + return this.helpers.requestWithAuthentication.call(this, credentialType, options, { oauth2: oAuth2Options, }); } diff --git a/packages/nodes-base/nodes/Stripe/helpers.ts b/packages/nodes-base/nodes/Stripe/helpers.ts index 0e365f7d0258a..e8677be02ea63 100644 --- a/packages/nodes-base/nodes/Stripe/helpers.ts +++ b/packages/nodes-base/nodes/Stripe/helpers.ts @@ -27,7 +27,7 @@ export async function stripeApiRequest( delete options.qs; } - return await this.helpers.requestWithAuthentication.call(this, 'stripeApi', options); + return this.helpers.requestWithAuthentication.call(this, 'stripeApi', options); } /** diff --git a/packages/nodes-base/nodes/TheHive/GenericFunctions.ts b/packages/nodes-base/nodes/TheHive/GenericFunctions.ts index 0dc0292e34ac7..73fe0522e56d8 100644 --- a/packages/nodes-base/nodes/TheHive/GenericFunctions.ts +++ b/packages/nodes-base/nodes/TheHive/GenericFunctions.ts @@ -40,7 +40,7 @@ export async function theHiveApiRequest( if (Object.keys(query).length === 0) { delete options.qs; } - return await this.helpers.requestWithAuthentication.call(this, 'theHiveApi', options); + return this.helpers.requestWithAuthentication.call(this, 'theHiveApi', options); } // Helpers functions diff --git a/packages/nodes-base/nodes/Trello/GenericFunctions.ts b/packages/nodes-base/nodes/Trello/GenericFunctions.ts index e990ea64c58f2..0b993b2147496 100644 --- a/packages/nodes-base/nodes/Trello/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Trello/GenericFunctions.ts @@ -26,7 +26,7 @@ export async function apiRequest( json: true, }; - return await this.helpers.requestWithAuthentication.call(this, 'trelloApi', options); + return this.helpers.requestWithAuthentication.call(this, 'trelloApi', options); } export async function apiRequestAllItems( diff --git a/packages/nodes-base/nodes/Twake/GenericFunctions.ts b/packages/nodes-base/nodes/Twake/GenericFunctions.ts index f3e300a0cebce..966abe5234e3b 100644 --- a/packages/nodes-base/nodes/Twake/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Twake/GenericFunctions.ts @@ -30,5 +30,5 @@ export async function twakeApiRequest( // options.uri = `${credentials!.hostUrl}/api/v1${resource}`; // } - return await this.helpers.requestWithAuthentication.call(this, 'twakeCloudApi', options); + return this.helpers.requestWithAuthentication.call(this, 'twakeCloudApi', options); } diff --git a/packages/nodes-base/nodes/Twilio/GenericFunctions.ts b/packages/nodes-base/nodes/Twilio/GenericFunctions.ts index e09d70f028816..a70a4f90a73e7 100644 --- a/packages/nodes-base/nodes/Twilio/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Twilio/GenericFunctions.ts @@ -36,7 +36,7 @@ export async function twilioApiRequest( json: true, }; - return await this.helpers.requestWithAuthentication.call(this, 'twilioApi', options); + return this.helpers.requestWithAuthentication.call(this, 'twilioApi', options); } const XML_CHAR_MAP: { [key: string]: string } = { diff --git a/packages/nodes-base/nodes/UrlScanIo/GenericFunctions.ts b/packages/nodes-base/nodes/UrlScanIo/GenericFunctions.ts index 3b32e78a52dfb..3834b2faca474 100644 --- a/packages/nodes-base/nodes/UrlScanIo/GenericFunctions.ts +++ b/packages/nodes-base/nodes/UrlScanIo/GenericFunctions.ts @@ -27,7 +27,7 @@ export async function urlScanIoApiRequest( delete options.qs; } - return await this.helpers.requestWithAuthentication.call(this, 'urlScanIoApi', options); + return this.helpers.requestWithAuthentication.call(this, 'urlScanIoApi', options); } export async function handleListing( diff --git a/packages/nodes-base/nodes/Webflow/GenericFunctions.ts b/packages/nodes-base/nodes/Webflow/GenericFunctions.ts index d7ec994472e75..e0699f4a6ebaa 100644 --- a/packages/nodes-base/nodes/Webflow/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Webflow/GenericFunctions.ts @@ -48,7 +48,7 @@ export async function webflowApiRequest( if (Object.keys(options.body).length === 0) { delete options.body; } - return await this.helpers.requestWithAuthentication.call(this, credentialsType, options); + return this.helpers.requestWithAuthentication.call(this, credentialsType, options); } export async function webflowApiRequestAllItems( diff --git a/packages/nodes-base/nodes/Wekan/GenericFunctions.ts b/packages/nodes-base/nodes/Wekan/GenericFunctions.ts index a77bc37c23235..b0bb2fa2d5599 100644 --- a/packages/nodes-base/nodes/Wekan/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Wekan/GenericFunctions.ts @@ -27,5 +27,5 @@ export async function apiRequest( json: true, }; - return await this.helpers.requestWithAuthentication.call(this, 'wekanApi', options); + return this.helpers.requestWithAuthentication.call(this, 'wekanApi', options); } diff --git a/packages/nodes-base/nodes/WooCommerce/GenericFunctions.ts b/packages/nodes-base/nodes/WooCommerce/GenericFunctions.ts index 469ef3ca6f8e4..b4f2f27047dd2 100644 --- a/packages/nodes-base/nodes/WooCommerce/GenericFunctions.ts +++ b/packages/nodes-base/nodes/WooCommerce/GenericFunctions.ts @@ -48,7 +48,7 @@ export async function woocommerceApiRequest( delete options.form; } options = Object.assign({}, options, option); - return await this.helpers.requestWithAuthentication.call(this, 'wooCommerceApi', options); + return this.helpers.requestWithAuthentication.call(this, 'wooCommerceApi', options); } export async function woocommerceApiRequestAllItems( diff --git a/packages/nodes-base/nodes/Wufoo/GenericFunctions.ts b/packages/nodes-base/nodes/Wufoo/GenericFunctions.ts index 09e94151c2c83..ea269071741aa 100644 --- a/packages/nodes-base/nodes/Wufoo/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Wufoo/GenericFunctions.ts @@ -36,5 +36,5 @@ export async function wufooApiRequest( delete options.body; } - return await this.helpers.requestWithAuthentication.call(this, 'wufooApi', options); + return this.helpers.requestWithAuthentication.call(this, 'wufooApi', options); } diff --git a/packages/nodes-base/nodes/Zendesk/GenericFunctions.ts b/packages/nodes-base/nodes/Zendesk/GenericFunctions.ts index 18266499c3e61..f1444e8c747f5 100644 --- a/packages/nodes-base/nodes/Zendesk/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Zendesk/GenericFunctions.ts @@ -48,7 +48,7 @@ export async function zendeskApiRequest( const credentialType = authenticationMethod === 'apiToken' ? 'zendeskApi' : 'zendeskOAuth2Api'; - return await this.helpers.requestWithAuthentication.call(this, credentialType, options); + return this.helpers.requestWithAuthentication.call(this, credentialType, options); } /**