diff --git a/packages/nodes-base/nodes/ActionNetwork/GenericFunctions.ts b/packages/nodes-base/nodes/ActionNetwork/GenericFunctions.ts index 327d08af5c..da137a0280 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 5033274aad..90369ee091 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 0ba3563582..d9ab6b885f 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 0fb63f4487..db7fd87ea0 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 00d935efeb..8e8c68ffc4 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 3d7aa4c28b..d6e5bac296 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 594908c313..2b386e1e61 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 f1b33d85db..95e41e5326 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 80e52cd959..d8f22b5eea 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 b65dfacee0..e6a8d687c0 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 f27daaa271..68d0ff544f 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 20a357e888..edb111d62c 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 71c006eefa..c4c88b46be 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 570d328d84..0f55702094 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 1eaa7fe230..0824ff77d2 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 e764a0cbfa..88c8f29962 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 7a6870c319..4c9c9ae149 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 fe63288bb1..bc6bf21132 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 78edc0e213..bd619c23c6 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 3981469f9a..abace3af3e 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 d97bdc967a..d363c52c29 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 1722f93418..e891f8bd1d 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 7d9ec333ba..05a1569463 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 0dc0292e34..73fe0522e5 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 e990ea64c5..0b993b2147 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 f3e300a0ce..966abe5234 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 e09d70f028..a70a4f90a7 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 f17ecb978d..4398559f51 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 d7ec994472..e0699f4a6e 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 a77bc37c23..b0bb2fa2d5 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 469ef3ca6f..b4f2f27047 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 09e94151c2..ea26907174 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 18266499c3..f1444e8c74 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); } /**