mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +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
@@ -746,10 +746,7 @@ export class HttpRequestV1 implements INodeType {
|
||||
}
|
||||
|
||||
if (options.bodyContentType === 'raw') {
|
||||
const binaryPropertyName = this.getNodeParameter(
|
||||
'binaryPropertyName',
|
||||
itemIndex,
|
||||
) as string;
|
||||
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', itemIndex);
|
||||
if (item.binary[binaryPropertyName] === undefined) {
|
||||
throw new NodeOperationError(
|
||||
this.getNode(),
|
||||
@@ -768,7 +765,7 @@ export class HttpRequestV1 implements INodeType {
|
||||
const binaryPropertyNameFull = this.getNodeParameter(
|
||||
'binaryPropertyName',
|
||||
itemIndex,
|
||||
) as string;
|
||||
);
|
||||
const binaryPropertyNames = binaryPropertyNameFull
|
||||
.split(',')
|
||||
.map((key) => key.trim());
|
||||
@@ -1012,7 +1009,7 @@ export class HttpRequestV1 implements INodeType {
|
||||
const fullResponse = !!options.fullResponse;
|
||||
|
||||
if (responseFormat === 'file') {
|
||||
const dataPropertyName = this.getNodeParameter('dataPropertyName', 0) as string;
|
||||
const dataPropertyName = this.getNodeParameter('dataPropertyName', 0);
|
||||
|
||||
const newItem: INodeExecutionData = {
|
||||
json: {},
|
||||
@@ -1058,7 +1055,7 @@ export class HttpRequestV1 implements INodeType {
|
||||
|
||||
returnItems.push(newItem);
|
||||
} else if (responseFormat === 'string') {
|
||||
const dataPropertyName = this.getNodeParameter('dataPropertyName', 0) as string;
|
||||
const dataPropertyName = this.getNodeParameter('dataPropertyName', 0);
|
||||
|
||||
if (fullResponse) {
|
||||
const returnItem: IDataObject = {};
|
||||
|
||||
Reference in New Issue
Block a user