Remove console.logs

This commit is contained in:
Jan Oberhauser 2021-01-13 10:49:55 +01:00
parent 63a459ac92
commit 29c9c6d933
5 changed files with 0 additions and 8 deletions

View file

@ -354,7 +354,6 @@ export class Beeminder implements INodeType {
if (data.timestamp) { if (data.timestamp) {
data.timestamp = moment.tz(data.timestamp, timezone).unix(); data.timestamp = moment.tz(data.timestamp, timezone).unix();
} }
console.log(data);
results = await createDatapoint.call(this, data); results = await createDatapoint.call(this, data);
} }
else if (operation === 'getAll') { else if (operation === 'getAll') {

View file

@ -355,7 +355,6 @@ export class ClickUp implements INodeType {
const returnData: INodePropertyOptions[] = []; const returnData: INodePropertyOptions[] = [];
const { tags } = await clickupApiRequest.call(this, 'GET', `/space/${spaceId}/tag`); const { tags } = await clickupApiRequest.call(this, 'GET', `/space/${spaceId}/tag`);
for (const tag of tags) { for (const tag of tags) {
console.log(tag);
const tagName = tag.name; const tagName = tag.name;
const tagId = tag.name; const tagId = tag.name;
returnData.push({ returnData.push({

View file

@ -230,8 +230,6 @@ export async function getToken(this: ILoadOptionsFunctions | IExecuteFunctions |
return response.response.token; return response.response.token;
} catch (error) { } catch (error) {
console.error(error);
let errorMessage; let errorMessage;
if (error.response) { if (error.response) {
errorMessage = error.response.body.messages[0].message + '(' + error.response.body.messages[0].message + ')'; 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; return response;
} catch (error) { } catch (error) {
console.error(error);
const errorMessage = error.response.body.messages[0].message + '(' + error.response.body.messages[0].message + ')'; const errorMessage = error.response.body.messages[0].message + '(' + error.response.body.messages[0].message + ')';
if (errorMessage !== undefined) { if (errorMessage !== undefined) {

View file

@ -140,7 +140,6 @@ export function getConditions(options: IDataObject) {
let data = undefined; let data = undefined;
if (Array.isArray(conditions) && conditions.length !== 0) { if (Array.isArray(conditions) && conditions.length !== 0) {
data = conditions.map((condition: IDataObject) => `${condition.field}${(condition.operation) === 'equal' ? '=' : condition.operation}${getValue(condition.value)}`); data = conditions.map((condition: IDataObject) => `${condition.field}${(condition.operation) === 'equal' ? '=' : condition.operation}${getValue(condition.value)}`);
console.log(data);
data = `WHERE ${data.join(' AND ')}`; data = `WHERE ${data.join(' AND ')}`;
} }
return data; return data;

View file

@ -47,7 +47,6 @@ export async function shopifyApiRequest(this: IHookFunctions | IExecuteFunctions
try { try {
return await this.helpers.request!(options); return await this.helpers.request!(options);
} catch (error) { } catch (error) {
console.log(error.response.body);
if (error.response.body && error.response.body.errors) { if (error.response.body && error.response.body.errors) {
let message = ''; let message = '';
if (typeof error.response.body.errors === 'object') { if (typeof error.response.body.errors === 'object') {