mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
⚡ Remove debug code
This commit is contained in:
parent
43396b7b9c
commit
28d5f22f61
|
@ -275,8 +275,6 @@ export class BoxTrigger implements INodeType {
|
||||||
const endpoint = '/webhooks';
|
const endpoint = '/webhooks';
|
||||||
const webhooks = await boxApiRequestAllItems.call(this, 'entries', 'GET', endpoint, {});
|
const webhooks = await boxApiRequestAllItems.call(this, 'entries', 'GET', endpoint, {});
|
||||||
|
|
||||||
console.log(webhooks);
|
|
||||||
|
|
||||||
for (const webhook of webhooks) {
|
for (const webhook of webhooks) {
|
||||||
if (webhook.address === webhookUrl &&
|
if (webhook.address === webhookUrl &&
|
||||||
webhook.target.id === targetId &&
|
webhook.target.id === targetId &&
|
||||||
|
|
|
@ -33,8 +33,6 @@ export async function mandrillApiRequest(this: IExecuteFunctions | IHookFunction
|
||||||
try {
|
try {
|
||||||
return await this.helpers.request!(options);
|
return await this.helpers.request!(options);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
|
||||||
|
|
||||||
const errorMessage = error.response.body.message || error.response.body.Message;
|
const errorMessage = error.response.body.message || error.response.body.Message;
|
||||||
if (error.name === 'Invalid_Key') {
|
if (error.name === 'Invalid_Key') {
|
||||||
throw new Error('The provided API key is not a valid Mandrill API key');
|
throw new Error('The provided API key is not a valid Mandrill API key');
|
||||||
|
|
|
@ -230,7 +230,6 @@ export class Twitter implements INodeType {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(body);
|
|
||||||
responseData = await twitterApiRequest.call(this, 'POST', '/statuses/update.json', body);
|
responseData = await twitterApiRequest.call(this, 'POST', '/statuses/update.json', body);
|
||||||
}
|
}
|
||||||
// https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets
|
// https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets
|
||||||
|
|
|
@ -115,7 +115,6 @@ export class Wordpress implements INodeType {
|
||||||
async getAuthors(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
async getAuthors(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||||
const returnData: INodePropertyOptions[] = [];
|
const returnData: INodePropertyOptions[] = [];
|
||||||
const authors = await wordpressApiRequestAllItems.call(this, 'GET', '/users', {}, { who: 'authors' });
|
const authors = await wordpressApiRequestAllItems.call(this, 'GET', '/users', {}, { who: 'authors' });
|
||||||
console.log(authors);
|
|
||||||
for (const author of authors) {
|
for (const author of authors) {
|
||||||
const authorName = author.name;
|
const authorName = author.name;
|
||||||
const authorId = author.id;
|
const authorId = author.id;
|
||||||
|
|
Loading…
Reference in a new issue