From 29c9c6d9338a905a0ba5ff58020dd8f1177080a9 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Wed, 13 Jan 2021 10:49:55 +0100 Subject: [PATCH] :zap: Remove console.logs --- packages/nodes-base/nodes/Beeminder/Beeminder.node.ts | 1 - packages/nodes-base/nodes/ClickUp/ClickUp.node.ts | 1 - packages/nodes-base/nodes/FileMaker/GenericFunctions.ts | 4 ---- packages/nodes-base/nodes/Salesforce/GenericFunctions.ts | 1 - packages/nodes-base/nodes/Shopify/GenericFunctions.ts | 1 - 5 files changed, 8 deletions(-) diff --git a/packages/nodes-base/nodes/Beeminder/Beeminder.node.ts b/packages/nodes-base/nodes/Beeminder/Beeminder.node.ts index b681bcedd4..966c783e25 100644 --- a/packages/nodes-base/nodes/Beeminder/Beeminder.node.ts +++ b/packages/nodes-base/nodes/Beeminder/Beeminder.node.ts @@ -354,7 +354,6 @@ export class Beeminder implements INodeType { if (data.timestamp) { data.timestamp = moment.tz(data.timestamp, timezone).unix(); } - console.log(data); results = await createDatapoint.call(this, data); } else if (operation === 'getAll') { diff --git a/packages/nodes-base/nodes/ClickUp/ClickUp.node.ts b/packages/nodes-base/nodes/ClickUp/ClickUp.node.ts index 4b35b0f242..6be02f5230 100644 --- a/packages/nodes-base/nodes/ClickUp/ClickUp.node.ts +++ b/packages/nodes-base/nodes/ClickUp/ClickUp.node.ts @@ -355,7 +355,6 @@ export class ClickUp implements INodeType { const returnData: INodePropertyOptions[] = []; const { tags } = await clickupApiRequest.call(this, 'GET', `/space/${spaceId}/tag`); for (const tag of tags) { - console.log(tag); const tagName = tag.name; const tagId = tag.name; returnData.push({ diff --git a/packages/nodes-base/nodes/FileMaker/GenericFunctions.ts b/packages/nodes-base/nodes/FileMaker/GenericFunctions.ts index 294c53c161..ebc36aa55e 100644 --- a/packages/nodes-base/nodes/FileMaker/GenericFunctions.ts +++ b/packages/nodes-base/nodes/FileMaker/GenericFunctions.ts @@ -230,8 +230,6 @@ export async function getToken(this: ILoadOptionsFunctions | IExecuteFunctions | return response.response.token; } catch (error) { - console.error(error); - let errorMessage; if (error.response) { errorMessage = error.response.body.messages[0].message + '(' + error.response.body.messages[0].message + ')'; @@ -275,8 +273,6 @@ export async function logout(this: ILoadOptionsFunctions | IExecuteFunctions | I return response; } catch (error) { - console.error(error); - const errorMessage = error.response.body.messages[0].message + '(' + error.response.body.messages[0].message + ')'; if (errorMessage !== undefined) { diff --git a/packages/nodes-base/nodes/Salesforce/GenericFunctions.ts b/packages/nodes-base/nodes/Salesforce/GenericFunctions.ts index a90a2d22e7..0eb6829c0a 100644 --- a/packages/nodes-base/nodes/Salesforce/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Salesforce/GenericFunctions.ts @@ -140,7 +140,6 @@ export function getConditions(options: IDataObject) { let data = undefined; if (Array.isArray(conditions) && conditions.length !== 0) { data = conditions.map((condition: IDataObject) => `${condition.field}${(condition.operation) === 'equal' ? '=' : condition.operation}${getValue(condition.value)}`); - console.log(data); data = `WHERE ${data.join(' AND ')}`; } return data; diff --git a/packages/nodes-base/nodes/Shopify/GenericFunctions.ts b/packages/nodes-base/nodes/Shopify/GenericFunctions.ts index 6a7205e860..9d366f5b0e 100644 --- a/packages/nodes-base/nodes/Shopify/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Shopify/GenericFunctions.ts @@ -47,7 +47,6 @@ export async function shopifyApiRequest(this: IHookFunctions | IExecuteFunctions try { return await this.helpers.request!(options); } catch (error) { - console.log(error.response.body); if (error.response.body && error.response.body.errors) { let message = ''; if (typeof error.response.body.errors === 'object') {