mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 08:34:07 -08:00
⚡ Minor improvements to Box-Node
This commit is contained in:
parent
f5013c22a7
commit
e62276555f
|
@ -21,7 +21,7 @@ export class BoxTrigger implements INodeType {
|
|||
icon: 'file:box.png',
|
||||
group: ['trigger'],
|
||||
version: 1,
|
||||
description: 'Starts the workflow when a Github events occurs.',
|
||||
description: 'Starts the workflow when a Box events occurs.',
|
||||
defaults: {
|
||||
name: 'Box Trigger',
|
||||
color: '#00aeef',
|
||||
|
@ -275,8 +275,6 @@ export class BoxTrigger implements INodeType {
|
|||
const endpoint = '/webhooks';
|
||||
const webhooks = await boxApiRequestAllItems.call(this, 'entries', 'GET', endpoint, {});
|
||||
|
||||
console.log(webhooks);
|
||||
|
||||
for (const webhook of webhooks) {
|
||||
if (webhook.address === webhookUrl &&
|
||||
webhook.target.id === targetId &&
|
||||
|
|
|
@ -41,8 +41,6 @@ export async function boxApiRequest(this: IExecuteFunctions | IExecuteSingleFunc
|
|||
return await this.helpers.requestOAuth2.call(this, 'boxOAuth2Api', options, oAuth2Options);
|
||||
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
|
||||
let errorMessage;
|
||||
|
||||
if (error.response && error.response.body) {
|
||||
|
|
Loading…
Reference in a new issue