mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
log updae
This commit is contained in:
@@ -875,7 +875,9 @@ export class Mattermost implements INodeType {
|
|||||||
body.message = this.getNodeParameter('message', i) as string;
|
body.message = this.getNodeParameter('message', i) as string;
|
||||||
|
|
||||||
const attachments = this.getNodeParameter('attachments', i, []) as unknown as IAttachment[];
|
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
|
// The node does save the fields data differently than the API
|
||||||
// expects so fix the data befre we send the request
|
// expects so fix the data befre we send the request
|
||||||
for (const attachment of attachments) {
|
for (const attachment of attachments) {
|
||||||
@@ -895,6 +897,9 @@ export class Mattermost implements INodeType {
|
|||||||
attachments,
|
attachments,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
console.log('####');
|
||||||
|
console.dir(body);
|
||||||
|
console.log('####');
|
||||||
// Add all the other options to the request
|
// Add all the other options to the request
|
||||||
const otherOptions = this.getNodeParameter('otherOptions', i) as IDataObject;
|
const otherOptions = this.getNodeParameter('otherOptions', i) as IDataObject;
|
||||||
Object.assign(body, otherOptions);
|
Object.assign(body, otherOptions);
|
||||||
|
|||||||
Reference in New Issue
Block a user