mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): Add more overloads for string-type node parameters (no-changelog) (#5101)
* refactor(core): Add more overloads for string-type node parameter (no-changelog) continued from https://github.com/n8n-io/n8n/pull/4797 * include binaryPropertyOutput
This commit is contained in:
committed by
GitHub
parent
c97f3cad59
commit
1acc7fea89
@@ -415,7 +415,7 @@ export class AwsRekognition implements INodeType {
|
||||
const binaryData = this.getNodeParameter('binaryData', 0);
|
||||
|
||||
if (binaryData) {
|
||||
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', 0) as string;
|
||||
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', 0);
|
||||
|
||||
if (items[i].binary === undefined) {
|
||||
throw new NodeOperationError(this.getNode(), 'No binary data exists on item!', {
|
||||
|
||||
@@ -608,10 +608,7 @@ export class AwsS3 implements INodeType {
|
||||
|
||||
items[i] = newItem;
|
||||
|
||||
const dataPropertyNameDownload = this.getNodeParameter(
|
||||
'binaryPropertyName',
|
||||
i,
|
||||
) as string;
|
||||
const dataPropertyNameDownload = this.getNodeParameter('binaryPropertyName', i);
|
||||
|
||||
const data = Buffer.from(response.body as string, 'utf8');
|
||||
|
||||
@@ -806,7 +803,7 @@ export class AwsS3 implements INodeType {
|
||||
const region = responseData.LocationConstraint._;
|
||||
|
||||
if (isBinaryData) {
|
||||
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', 0) as string;
|
||||
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', 0);
|
||||
|
||||
if (items[i].binary === undefined) {
|
||||
throw new NodeOperationError(this.getNode(), 'No binary data exists on item!', {
|
||||
|
||||
@@ -120,7 +120,7 @@ export class AwsTextract implements INodeType {
|
||||
try {
|
||||
//https://docs.aws.amazon.com/textract/latest/dg/API_AnalyzeExpense.html
|
||||
if (operation === 'analyzeExpense') {
|
||||
const binaryProperty = this.getNodeParameter('binaryPropertyName', i) as string;
|
||||
const binaryProperty = this.getNodeParameter('binaryPropertyName', i);
|
||||
const simple = this.getNodeParameter('simple', i) as boolean;
|
||||
|
||||
if (items[i].binary === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user