mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix: Properly iterate over credentials with expressions (#8502)
This commit is contained in:
@@ -1714,6 +1714,7 @@ export async function requestWithAuthentication(
|
||||
node: INode,
|
||||
additionalData: IWorkflowExecuteAdditionalData,
|
||||
additionalCredentialOptions?: IAdditionalCredentialOptions,
|
||||
itemIndex?: number,
|
||||
) {
|
||||
let credentialsDecrypted: ICredentialDataDecryptedObject | undefined;
|
||||
|
||||
@@ -1738,7 +1739,7 @@ export async function requestWithAuthentication(
|
||||
if (additionalCredentialOptions?.credentialsDecrypted) {
|
||||
credentialsDecrypted = additionalCredentialOptions.credentialsDecrypted.data;
|
||||
} else {
|
||||
credentialsDecrypted = await this.getCredentials(credentialsType);
|
||||
credentialsDecrypted = await this.getCredentials(credentialsType, itemIndex);
|
||||
}
|
||||
|
||||
if (credentialsDecrypted === undefined) {
|
||||
@@ -3000,6 +3001,7 @@ const getRequestHelperFunctions = (
|
||||
credentialsType,
|
||||
requestOptions,
|
||||
additionalCredentialOptions,
|
||||
itemIndex,
|
||||
): Promise<any> {
|
||||
return await requestWithAuthentication.call(
|
||||
this,
|
||||
@@ -3009,6 +3011,7 @@ const getRequestHelperFunctions = (
|
||||
node,
|
||||
additionalData,
|
||||
additionalCredentialOptions,
|
||||
itemIndex,
|
||||
);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user