mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
⚡ Remove console.logs
This commit is contained in:
@@ -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') {
|
||||||
|
|||||||
@@ -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({
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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') {
|
||||||
|
|||||||
Reference in New Issue
Block a user