Minor improvements to Signl4-Node

This commit is contained in:
Jan Oberhauser 2020-06-25 09:54:25 +02:00
parent a6a4eed711
commit 830e4f19b6
5 changed files with 3 additions and 3 deletions

View file

@ -268,7 +268,7 @@ export class Signl4 implements INodeType {
if (attachments) {
if (attachments.attachmentsBinary && items[i].binary) {
const propertyName = (attachments.attachmentsBinary as IDataObject).property as string
const propertyName = (attachments.attachmentsBinary as IDataObject).property as string;
const binaryProperty = (items[i].binary as IBinaryKeyData)[propertyName];
@ -287,7 +287,7 @@ export class Signl4 implements INodeType {
filename: binaryProperty.fileName,
contentType: binaryProperty.mimeType,
},
}
};
} else {
throw new Error(`Binary property ${propertyName} does not exist on input`);

View file

Before

Width:  |  Height:  |  Size: 3 KiB

After

Width:  |  Height:  |  Size: 3 KiB

View file

@ -261,7 +261,7 @@
"dist/nodes/Set.node.js",
"dist/nodes/Shopify/Shopify.node.js",
"dist/nodes/Shopify/ShopifyTrigger.node.js",
"dist/nodes/signl4/Signl4.node.js",
"dist/nodes/Signl4/Signl4.node.js",
"dist/nodes/Slack/Slack.node.js",
"dist/nodes/Sms77/Sms77.node.js",
"dist/nodes/SplitInBatches.node.js",