mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
🐛 Fix bug with data-property on EmailReadImap-Node
This commit is contained in:
parent
2d0d3f7ce1
commit
62d7e6d6ed
|
@ -69,7 +69,7 @@ export class EmailReadImap implements INodeType {
|
|||
displayOptions: {
|
||||
show: {
|
||||
downloadAttachments: [
|
||||
'true'
|
||||
true
|
||||
],
|
||||
},
|
||||
},
|
||||
|
@ -90,7 +90,6 @@ export class EmailReadImap implements INodeType {
|
|||
}
|
||||
|
||||
const mailbox = this.getNodeParameter('mailbox') as string;
|
||||
const dataPropertyAttachmentsPrefixName = this.getNodeParameter('dataPropertyAttachmentsPrefixName') as string;
|
||||
const postProcessAction = this.getNodeParameter('postProcessAction') as string;
|
||||
const downloadAttachments = this.getNodeParameter('downloadAttachments') as boolean;
|
||||
|
||||
|
@ -160,6 +159,11 @@ export class EmailReadImap implements INodeType {
|
|||
let attachments: IBinaryData[];
|
||||
let propertyName: string;
|
||||
|
||||
let dataPropertyAttachmentsPrefixName = '';
|
||||
if (downloadAttachments === true) {
|
||||
dataPropertyAttachmentsPrefixName = this.getNodeParameter('dataPropertyAttachmentsPrefixName') as string;
|
||||
}
|
||||
|
||||
// All properties get by default moved to metadata except the ones
|
||||
// which are defined here which get set on the top level.
|
||||
const topLevelProperties = [
|
||||
|
|
Loading…
Reference in a new issue