🐛 Fix bug with data-property on EmailReadImap-Node

This commit is contained in:
Jan Oberhauser 2019-09-07 09:11:23 +02:00
parent 2d0d3f7ce1
commit 62d7e6d6ed

View file

@ -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 = [