Minor improvements to Box-Node

This commit is contained in:
Jan Oberhauser 2020-07-24 10:59:19 +02:00
parent f5013c22a7
commit e62276555f
2 changed files with 1 additions and 5 deletions

View file

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

View file

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