mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
⚡ Remove console.logs
This commit is contained in:
parent
63a459ac92
commit
29c9c6d933
|
@ -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') {
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue