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) {
data.timestamp = moment.tz(data.timestamp, timezone).unix();
}
console.log(data);
results = await createDatapoint.call(this, data);
}
else if (operation === 'getAll') {

View file

@ -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({

View file

@ -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) {

View file

@ -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;

View file

@ -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') {