refactor: Consolidate redundant code in workflow execution-functions (no-changelog) (#4884)

* refactor: Consolidate redundant code in workflow interfaces (no-changelog)

* consolidate all execution-functions interfaces code

* move rawBody definition back

* address PR comments
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2022-12-23 18:27:07 +01:00
committed by GitHub
parent 2b1eb94906
commit 5cf70e1007
8 changed files with 342 additions and 1221 deletions

View File

@@ -78,9 +78,9 @@ export namespace SendInBlueNode {
);
}
const bufferFromIncomingData = (await this.helpers.getBinaryDataBuffer(
const bufferFromIncomingData = await this.helpers.getBinaryDataBuffer(
binaryPropertyAttachmentName,
)) as Buffer;
);
const {
data: content,
@@ -93,8 +93,8 @@ export namespace SendInBlueNode {
const name = getFileName(
itemIndex,
mimeType,
fileExtension,
fileName || item.binary!.data.fileName,
fileExtension!,
fileName || item.binary!.data.fileName!,
);
attachment.push({ content, name });