mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
fix(core): Setup nodeHelpers that aren't exposed in the code sandbox (no-changelog) (#5753)
This commit is contained in:
committed by
GitHub
parent
d3a34ab71b
commit
b0cfd69f2b
@@ -603,7 +603,7 @@ export class Ftp implements INodeType {
|
||||
const dataPropertyNameDownload = this.getNodeParameter('binaryPropertyName', i);
|
||||
const filePathDownload = this.getNodeParameter('path', i) as string;
|
||||
|
||||
items[i].binary![dataPropertyNameDownload] = await this.helpers.copyBinaryFile(
|
||||
items[i].binary![dataPropertyNameDownload] = await this.nodeHelpers.copyBinaryFile(
|
||||
binaryFile.path,
|
||||
filePathDownload,
|
||||
);
|
||||
@@ -699,7 +699,7 @@ export class Ftp implements INodeType {
|
||||
const dataPropertyNameDownload = this.getNodeParameter('binaryPropertyName', i);
|
||||
const filePathDownload = this.getNodeParameter('path', i) as string;
|
||||
|
||||
items[i].binary![dataPropertyNameDownload] = await this.helpers.copyBinaryFile(
|
||||
items[i].binary![dataPropertyNameDownload] = await this.nodeHelpers.copyBinaryFile(
|
||||
binaryFile.path,
|
||||
filePathDownload,
|
||||
);
|
||||
|
||||
@@ -329,7 +329,7 @@ export class Ssh implements INodeType {
|
||||
|
||||
items[i] = newItem;
|
||||
|
||||
items[i].binary![dataPropertyNameDownload] = await this.helpers.copyBinaryFile(
|
||||
items[i].binary![dataPropertyNameDownload] = await this.nodeHelpers.copyBinaryFile(
|
||||
path,
|
||||
parameterPath,
|
||||
);
|
||||
|
||||
@@ -714,7 +714,7 @@ export class Wait implements INodeType {
|
||||
}
|
||||
|
||||
const fileJson = file.toJSON();
|
||||
returnItem.binary![binaryPropertyName] = await this.helpers.copyBinaryFile(
|
||||
returnItem.binary![binaryPropertyName] = await this.nodeHelpers.copyBinaryFile(
|
||||
file.path,
|
||||
fileJson.name || fileJson.filename,
|
||||
fileJson.type as string,
|
||||
@@ -747,7 +747,7 @@ export class Wait implements INodeType {
|
||||
};
|
||||
|
||||
const binaryPropertyName = (options.binaryPropertyName || 'data') as string;
|
||||
returnItem.binary![binaryPropertyName] = await this.helpers.copyBinaryFile(
|
||||
returnItem.binary![binaryPropertyName] = await this.nodeHelpers.copyBinaryFile(
|
||||
binaryFile.path,
|
||||
mimeType,
|
||||
);
|
||||
|
||||
@@ -526,7 +526,7 @@ export class Webhook implements INodeType {
|
||||
}
|
||||
|
||||
const fileJson = file.toJSON();
|
||||
returnItem.binary![binaryPropertyName] = await this.helpers.copyBinaryFile(
|
||||
returnItem.binary![binaryPropertyName] = await this.nodeHelpers.copyBinaryFile(
|
||||
file.path,
|
||||
fileJson.name || fileJson.filename,
|
||||
fileJson.type as string,
|
||||
@@ -559,7 +559,7 @@ export class Webhook implements INodeType {
|
||||
};
|
||||
|
||||
const binaryPropertyName = (options.binaryPropertyName || 'data') as string;
|
||||
returnItem.binary![binaryPropertyName] = await this.helpers.copyBinaryFile(
|
||||
returnItem.binary![binaryPropertyName] = await this.nodeHelpers.copyBinaryFile(
|
||||
binaryFile.path,
|
||||
mimeType,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user