From 8e4e4f2fe28c9e967566e8f67e29943f0190dfc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=82osz=20Szewczak?= Date: Sat, 11 Apr 2020 08:35:21 +0200 Subject: [PATCH] log updae --- packages/nodes-base/nodes/Mattermost/Mattermost.node.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/Mattermost/Mattermost.node.ts b/packages/nodes-base/nodes/Mattermost/Mattermost.node.ts index 04ea8f4d2..abab4af48 100644 --- a/packages/nodes-base/nodes/Mattermost/Mattermost.node.ts +++ b/packages/nodes-base/nodes/Mattermost/Mattermost.node.ts @@ -875,7 +875,9 @@ export class Mattermost implements INodeType { body.message = this.getNodeParameter('message', i) as string; const attachments = this.getNodeParameter('attachments', i, []) as unknown as IAttachment[]; - console.dir(attachments); + console.log('----'); + console.dir(attachments); + console.log('----'); // The node does save the fields data differently than the API // expects so fix the data befre we send the request for (const attachment of attachments) { @@ -895,6 +897,9 @@ export class Mattermost implements INodeType { attachments, }; + console.log('####'); + console.dir(body); + console.log('####'); // Add all the other options to the request const otherOptions = this.getNodeParameter('otherOptions', i) as IDataObject; Object.assign(body, otherOptions);