mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
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:
committed by
GitHub
parent
2b1eb94906
commit
5cf70e1007
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user